diff options
author | LemonBoy <thatlemon@gmail.com> | 2016-11-23 22:22:37 +0100 |
---|---|---|
committer | LemonBoy <thatlemon@gmail.com> | 2016-11-23 22:22:37 +0100 |
commit | 5f0e755a00c7cb0e85e167cd455bb3ce16b4d14b (patch) | |
tree | c06aadbdeba05ecb0cefa46639ccaa92a1c5eced /src/fe-common/irc/fe-netsplit.c | |
parent | 7574bed26c98069945b3fbc3938819c10e65b045 (diff) | |
download | irssi-5f0e755a00c7cb0e85e167cd455bb3ce16b4d14b.zip |
Don't shadow the 'channel' variable when printing the netjoins.
This is the root cause of #567
Diffstat (limited to 'src/fe-common/irc/fe-netsplit.c')
-rw-r--r-- | src/fe-common/irc/fe-netsplit.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/fe-common/irc/fe-netsplit.c b/src/fe-common/irc/fe-netsplit.c index b44fa249..17fb1994 100644 --- a/src/fe-common/irc/fe-netsplit.c +++ b/src/fe-common/irc/fe-netsplit.c @@ -142,7 +142,7 @@ static void get_server_splits(void *key, NETSPLIT_REC *split, } } -static void print_server_splits(IRC_SERVER_REC *server, TEMP_SPLIT_REC *rec, const char *channel) +static void print_server_splits(IRC_SERVER_REC *server, TEMP_SPLIT_REC *rec, const char *filter_channel) { GString *destservers; char *sourceserver; @@ -168,7 +168,8 @@ static void print_server_splits(IRC_SERVER_REC *server, TEMP_SPLIT_REC *rec, con for (tmp = rec->channels; tmp != NULL; tmp = tmp->next) { TEMP_SPLIT_CHAN_REC *chan = tmp->data; - if (channel != NULL && strcasecmp(channel, chan->name) != 0) + if (filter_channel != NULL && + strcasecmp(chan->name, filter_channel) != 0) continue; g_string_truncate(chan->nicks, chan->nicks->len-2); |