summaryrefslogtreecommitdiff
path: root/src/plugins/irc
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2015-12-20 10:18:13 +0100
committerSébastien Helleu <flashcode@flashtux.org>2015-12-20 10:18:13 +0100
commit971a90474f937dfff20669498c7dec60f316711d (patch)
treeeac2da5016d974ee67b69cd834acde9c93133e92 /src/plugins/irc
parentad45fd775db6a82cd8ad5288adfd19c9340ea5ab (diff)
downloadweechat-971a90474f937dfff20669498c7dec60f316711d.zip
irc: fix condition in account message callback
Diffstat (limited to 'src/plugins/irc')
-rw-r--r--src/plugins/irc/irc-protocol.c2
1 files changed, 1 insertions, 1 deletions
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)