1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-27 13:26:38 +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
+3 -1
View File
@@ -1,7 +1,7 @@
WeeChat ChangeLog
=================
Sébastien Helleu <flashcode@flashtux.org>
v0.3.8-dev, 2012-04-03
v0.3.8-dev, 2012-04-05
Version 0.3.8 (under dev!)
@@ -24,6 +24,8 @@ Version 0.3.8 (under dev!)
given to plugin API functions (warning displayed if debug for plugin is >= 1)
* api: add list "gui_buffer_last_displayed" in hdata "buffer"
* guile: add missing function "hook_process_hashtable" in API
* irc: set user modes only if target nick is self nick in message 221
(patch #7754)
* irc: force the clear of nicklist when joining a channel (nicklist was not sync
after znc reconnection) (bug #36008)
* irc: allow more than one nick in command /invite
+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;
}