diff options
author | Adam <Adam@anope.org> | 2016-09-28 19:10:29 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2016-09-28 19:10:29 -0400 |
commit | 79c0e2f0c4e7cd0c6be19431e922bac08d508c1f (patch) | |
tree | 2ce32eec6d71558df5e664119ca07330a65af969 /modules/chanserv/access.cpp | |
parent | f3bfaa814ac9e12bb151620ad807b1f9e57ae323 (diff) |
Only special case level -1 to everyone and not everything <0
Diffstat (limited to 'modules/chanserv/access.cpp')
-rw-r--r-- | modules/chanserv/access.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/chanserv/access.cpp b/modules/chanserv/access.cpp index bc241d233..5c9650577 100644 --- a/modules/chanserv/access.cpp +++ b/modules/chanserv/access.cpp @@ -904,9 +904,9 @@ class CSAccess : public Module { if (group->ci == NULL) return EVENT_CONTINUE; - /* Special case. Allows a level of < 0 to match anyone, and a level of 0 to match anyone identified. */ + /* Special case. Allows a level of -1 to match anyone, and a level of 0 to match anyone identified. */ int16_t level = group->ci->GetLevel(priv); - if (level < 0) + if (level == -1) return EVENT_ALLOW; else if (level == 0 && group->nc) return EVENT_ALLOW; |