summaryrefslogtreecommitdiff
path: root/modules/commands/cs_access.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2015-12-13 19:43:21 -0500
committerAdam <Adam@anope.org>2015-12-13 19:43:21 -0500
commit3da2cdb49604f6814e0357e3372389326b1a9152 (patch)
tree10e9cf2cabc66025a2344b316cc4e05dbebe6fcc /modules/commands/cs_access.cpp
parentecdd046c80d696a882b12af615ed9f217afd40a9 (diff)
Only special case level -1 to everyone and not everything <0
Diffstat (limited to 'modules/commands/cs_access.cpp')
-rw-r--r--modules/commands/cs_access.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/commands/cs_access.cpp b/modules/commands/cs_access.cpp
index 2fba96a9a..2e8212383 100644
--- a/modules/commands/cs_access.cpp
+++ b/modules/commands/cs_access.cpp
@@ -891,9 +891,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;