From 79c0e2f0c4e7cd0c6be19431e922bac08d508c1f Mon Sep 17 00:00:00 2001 From: Adam Date: Wed, 28 Sep 2016 19:10:29 -0400 Subject: Only special case level -1 to everyone and not everything <0 --- modules/chanserv/access.cpp | 4 ++-- 1 file 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; -- cgit