1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-30 14:56:39 +02:00

irc: fix display of ACCOUNT message when the account name is ":*" (closes #1526)

This commit is contained in:
Sébastien Helleu
2020-06-15 23:03:16 +02:00
parent d0ae0fea49
commit eba9c31da0
+3 -3
View File
@@ -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)