diff options
-rw-r--r-- | include/channel_mode.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/channel_mode.h b/include/channel_mode.h index 164a1e1..a751dc6 100644 --- a/include/channel_mode.h +++ b/include/channel_mode.h @@ -85,7 +85,7 @@ enum /* name invisible */ #define SecretChannel(x) (((x)->mode.mode & MODE_SECRET)) -#define PubChannel(x) (!SecretChannel(x)) +#define PubChannel(x) (((x)->mode.mode & (MODE_PRIVATE | MODE_SECRET)) == 0) /* knock is forbidden, halfops can't kick/deop other halfops. * +pi means paranoid and will generate notices on each invite */ #define PrivateChannel(x) (((x)->mode.mode & MODE_PRIVATE)) |