diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2020-06-15 23:03:16 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2020-06-15 23:03:58 +0200 |
commit | eba9c31da0afcb344c9653bfe4371a466a076003 (patch) | |
tree | d99fc41c21c8e20c88314f10bfaef49e68162c02 /src | |
parent | d0ae0fea498750a2630c220798430fcdc9e3bce9 (diff) | |
download | weechat-eba9c31da0afcb344c9653bfe4371a466a076003.zip |
irc: fix display of ACCOUNT message when the account name is ":*" (closes #1526)
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/irc/irc-protocol.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/irc/irc-protocol.c b/src/plugins/irc/irc-protocol.c index 624de7b0a..7a92d54d8 100644 --- a/src/plugins/irc/irc-protocol.c +++ b/src/plugins/irc/irc-protocol.c @@ -339,9 +339,9 @@ IRC_PROTOCOL_CALLBACK(account) local_account = (irc_server_strcasecmp (server, nick, server->nick) == 0); - pos_account = (strcmp (argv[2], "*") != 0) ? argv[2] : NULL; - if (pos_account && pos_account[0] == ':') - pos_account++; + pos_account = (argv[2][0] == ':') ? argv[2] + 1 : argv[2]; + if (strcmp (pos_account, "*") == 0) + pos_account = NULL; str_account[0] = '\0'; if (pos_account) |