1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-04 16:53:14 +02:00

irc: skip semicolon before account name in ACCOUNT message

This commit is contained in:
Sébastien Helleu
2020-06-15 07:12:06 +02:00
parent 340d6646a6
commit d0ae0fea49
+3 -1
View File
@@ -324,7 +324,7 @@ irc_protocol_parse_time (const char *time)
*
* Message looks like:
* :nick!user@host ACCOUNT *
* :nick!user@host ACCOUNT accountname
* :nick!user@host ACCOUNT :accountname
*/
IRC_PROTOCOL_CALLBACK(account)
@@ -340,6 +340,8 @@ 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++;
str_account[0] = '\0';
if (pos_account)