From eba9c31da0afcb344c9653bfe4371a466a076003 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Mon, 15 Jun 2020 23:03:16 +0200 Subject: irc: fix display of ACCOUNT message when the account name is ":*" (closes #1526) --- src/plugins/irc/irc-protocol.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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) -- cgit v1.2.3