summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authormichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2014-01-22 20:24:13 +0000
committermichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2014-01-22 20:24:13 +0000
commit5122f326315bd601500665a9664a23bc939fdd1f (patch)
treeeab8865d2d3e28eef19e53f10f34b82e209f7810 /include
parent22a33228258122fd4623d7e07f2a53b1f94fe25e (diff)
- channel_mode.h: fixed long-standing bug where +p channels have been show
in the /whois reply git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/branches/8.1.x@2903 82007160-df01-0410-b94d-b575c5fd34c7
Diffstat (limited to 'include')
-rw-r--r--include/channel_mode.h2
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))