summaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
authorarza <arza@arza.us>2017-01-29 11:13:59 +0200
committerarza <arza@arza.us>2017-01-29 11:13:59 +0200
commit27e949d9743cf6029ff5a06999ce4f6015df67e4 (patch)
treef1787b624b76f159a63df96122dd80984f4ae860 /src/plugins
parent658b166a41b9db1d7c341fc323a8efe4308bfc77 (diff)
downloadweechat-27e949d9743cf6029ff5a06999ce4f6015df67e4.zip
irc: don't smart filter modes given to you (closes #530)
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/irc/irc-mode.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins/irc/irc-mode.c b/src/plugins/irc/irc-mode.c
index 21a02346c..e8ad61966 100644
--- a/src/plugins/irc/irc-mode.c
+++ b/src/plugins/irc/irc-mode.c
@@ -447,10 +447,11 @@ irc_mode_channel_set (struct t_irc_server *server,
irc_nick_set_mode (server, channel, ptr_nick,
(set_flag == '+'), pos[0]);
if (smart_filter
- && irc_channel_nick_speaking_time_search (server,
+ && (irc_channel_nick_speaking_time_search (server,
channel,
ptr_nick->name,
- 1))
+ 1)
+ || irc_server_strcasecmp (server, ptr_nick->name, server->nick) == 0))
{
smart_filter = 0;
}