From 3da2cdb49604f6814e0357e3372389326b1a9152 Mon Sep 17 00:00:00 2001 From: Adam Date: Sun, 13 Dec 2015 19:43:21 -0500 Subject: Only special case level -1 to everyone and not everything <0 --- modules/commands/cs_access.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules') 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; -- cgit