summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--src/plugins/irc/irc-protocol.c9
2 files changed, 9 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index e7ec7192f..3ec0e00bb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
diff --git a/src/plugins/irc/irc-protocol.c b/src/plugins/irc/irc-protocol.c
index c117d90eb..b50109fee 100644
--- a/src/plugins/irc/irc-protocol.c
+++ b/src/plugins/irc/irc-protocol.c
@@ -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;
}