summaryrefslogtreecommitdiff
path: root/src/plugins/irc/irc-protocol.c
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2020-06-15 07:12:06 +0200
committerSébastien Helleu <flashcode@flashtux.org>2020-06-15 07:12:06 +0200
commitd0ae0fea498750a2630c220798430fcdc9e3bce9 (patch)
tree628c8877424a8b672262eab4fcbc082b97ce24ed /src/plugins/irc/irc-protocol.c
parent340d6646a6371e2f224d392c9b1b44c8a20b5074 (diff)
downloadweechat-d0ae0fea498750a2630c220798430fcdc9e3bce9.zip
irc: skip semicolon before account name in ACCOUNT message
Diffstat (limited to 'src/plugins/irc/irc-protocol.c')
-rw-r--r--src/plugins/irc/irc-protocol.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/irc/irc-protocol.c b/src/plugins/irc/irc-protocol.c
index 1cdb35eda..624de7b0a 100644
--- a/src/plugins/irc/irc-protocol.c
+++ b/src/plugins/irc/irc-protocol.c
@@ -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)