From 971a90474f937dfff20669498c7dec60f316711d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Sun, 20 Dec 2015 10:18:13 +0100 Subject: [PATCH] irc: fix condition in account message callback --- src/plugins/irc/irc-protocol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/irc/irc-protocol.c b/src/plugins/irc/irc-protocol.c index 08ba64bab..c6ade5644 100644 --- a/src/plugins/irc/irc-protocol.c +++ b/src/plugins/irc/irc-protocol.c @@ -210,7 +210,7 @@ IRC_PROTOCOL_CALLBACK(account) IRC_PROTOCOL_MIN_ARGS(3); - pos_account = (argv[2] && argv[2][0] != '*') ? argv[2] : NULL; + pos_account = (strcmp (argv[2], "*") != 0) ? argv[2] : NULL; for (ptr_channel = server->channels; ptr_channel; ptr_channel = ptr_channel->next_channel)