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

irc: set user modes only if target nick is self nick in message 221 (patch #7754)

This commit is contained in:
Kyle Fuller
2012-04-05 14:05:46 +02:00
committed by Sebastien Helleu
parent 6c261d31e1
commit 1307ab9ffc
2 changed files with 9 additions and 4 deletions
+6 -3
View File
@@ -2229,9 +2229,12 @@ IRC_PROTOCOL_CALLBACK(221)
(argv_eol[3][0] == ':') ? argv_eol[3] + 1 : argv_eol[3],
IRC_COLOR_CHAT_DELIMITERS);
irc_mode_user_set (server,
(argv_eol[3][0] == ':') ? argv_eol[3] + 1 : argv_eol[3],
1);
if (irc_server_strcasecmp (server, argv[2], server->nick) == 0)
{
irc_mode_user_set (server,
(argv_eol[3][0] == ':') ? argv_eol[3] + 1 : argv_eol[3],
1);
}
return WEECHAT_RC_OK;
}