diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2014-02-22 14:59:24 +0100 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2014-02-22 14:59:24 +0100 |
commit | 381140f964c394986c8ed81174bbee954b92323d (patch) | |
tree | 96aaa69c8263055584dfba58cab2c54b51fb85f7 /src | |
parent | 3ef27075f994714efa85935ffbae5089488a5bc9 (diff) | |
download | weechat-381140f964c394986c8ed81174bbee954b92323d.zip |
irc: remove dead assignment in function irc_ignore_check
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/irc/irc-ignore.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/plugins/irc/irc-ignore.c b/src/plugins/irc/irc-ignore.c index b639d84ff..2292a16e6 100644 --- a/src/plugins/irc/irc-ignore.c +++ b/src/plugins/irc/irc-ignore.c @@ -195,15 +195,13 @@ irc_ignore_check (struct t_irc_server *server, const char *channel, for (ptr_ignore = irc_ignore_list; ptr_ignore; ptr_ignore = ptr_ignore->next_ignore) { - server_match = 0; - channel_match = 0; - if (strcmp (ptr_ignore->server, "*") == 0) server_match = 1; else server_match = (weechat_strcasecmp (ptr_ignore->server, server->name) == 0); + channel_match = 0; if (!channel || (strcmp (ptr_ignore->channel, "*") == 0)) channel_match = 1; else |