summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2014-02-22 14:59:24 +0100
committerSebastien Helleu <flashcode@flashtux.org>2014-02-22 14:59:24 +0100
commit381140f964c394986c8ed81174bbee954b92323d (patch)
tree96aaa69c8263055584dfba58cab2c54b51fb85f7 /src
parent3ef27075f994714efa85935ffbae5089488a5bc9 (diff)
downloadweechat-381140f964c394986c8ed81174bbee954b92323d.zip
irc: remove dead assignment in function irc_ignore_check
Diffstat (limited to 'src')
-rw-r--r--src/plugins/irc/irc-ignore.c4
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