From 3167ccfbc21e6918133e5898f5e76596bb6de788 Mon Sep 17 00:00:00 2001 From: Lukas Mai Date: Thu, 18 Feb 2016 02:23:09 +0100 Subject: remove redundant check --- src/irc/proxy/listen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/irc/proxy') diff --git a/src/irc/proxy/listen.c b/src/irc/proxy/listen.c index cd946baa..3ec83773 100644 --- a/src/irc/proxy/listen.c +++ b/src/irc/proxy/listen.c @@ -140,7 +140,7 @@ static void handle_client_connect_cmd(CLIENT_REC *client, client->proxy_address = g_strdup_printf("%*s.proxy", (int)(tag_end - args), args); } - if (password && g_strcmp0(password, args_pass) != 0) { + if (g_strcmp0(password, args_pass) != 0) { /* wrong password! */ remove_client(client); return; -- cgit v1.2.3