summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLemonBoy <thatlemon@gmail.com>2016-11-23 16:11:38 +0100
committerLemonBoy <thatlemon@gmail.com>2016-11-23 16:11:38 +0100
commit7574bed26c98069945b3fbc3938819c10e65b045 (patch)
treee7c924e1589e894033043d667a7e3cc0deb06ed3
parent1aff5c2c97b452ffdb5c59cf62f29048731b9f40 (diff)
downloadirssi-7574bed26c98069945b3fbc3938819c10e65b045.zip
Minor corrections to the netsplit code.
-rw-r--r--src/fe-common/irc/fe-netjoin.c2
-rw-r--r--src/fe-common/irc/fe-netsplit.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/src/fe-common/irc/fe-netjoin.c b/src/fe-common/irc/fe-netjoin.c
index 22ca642c..79a8d5ec 100644
--- a/src/fe-common/irc/fe-netjoin.c
+++ b/src/fe-common/irc/fe-netjoin.c
@@ -251,7 +251,7 @@ static void sig_print_starting(TEXT_DEST_REC *dest)
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))
diff --git a/src/fe-common/irc/fe-netsplit.c b/src/fe-common/irc/fe-netsplit.c
index aa05639b..b44fa249 100644
--- a/src/fe-common/irc/fe-netsplit.c
+++ b/src/fe-common/irc/fe-netsplit.c
@@ -249,13 +249,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);