diff options
author | LemonBoy <LemonBoy@users.noreply.github.com> | 2016-11-25 21:52:42 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-25 21:52:42 +0100 |
commit | 22ce6637c7acbdda27395521cc7dce23fa98b8b9 (patch) | |
tree | 32ccb5f2017c7eedcdf0ad568849ef5d6602d533 /src/fe-common/irc/fe-netsplit.c | |
parent | 1c0f048d2cc0184105f6e2fff835be7efa633a7b (diff) | |
parent | 5f0e755a00c7cb0e85e167cd455bb3ce16b4d14b (diff) | |
download | irssi-22ce6637c7acbdda27395521cc7dce23fa98b8b9.zip |
Merge pull request #577 from LemonBoy/flagz
Minor corrections to the netsplit code.
Diffstat (limited to 'src/fe-common/irc/fe-netsplit.c')
-rw-r--r-- | src/fe-common/irc/fe-netsplit.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/fe-common/irc/fe-netsplit.c b/src/fe-common/irc/fe-netsplit.c index aa05639b..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); @@ -249,13 +250,13 @@ static void sig_print_starting(TEXT_DEST_REC *dest) if (printing_splits) return; - if (IS_IRC_SERVER(dest->server) == FALSE) + if (!IS_IRC_SERVER(dest->server)) return; - if (dest->level != MSGLEVEL_PUBLIC) + if (!(dest->level & MSGLEVEL_PUBLIC)) return; - if (server_ischannel(dest->server, dest->target) == FALSE) + if (!server_ischannel(dest->server, dest->target)) return; rec = IRC_SERVER(dest->server); |