summaryrefslogtreecommitdiff
path: root/modules/chanserv/cs_unban.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/chanserv/cs_unban.cpp')
-rw-r--r--modules/chanserv/cs_unban.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/chanserv/cs_unban.cpp b/modules/chanserv/cs_unban.cpp
index c214136eb..5b08511b3 100644
--- a/modules/chanserv/cs_unban.cpp
+++ b/modules/chanserv/cs_unban.cpp
@@ -81,7 +81,7 @@ public:
}
if (!source.AccessFor(ci).HasPriv("UNBAN") &&
- !(u2 == source.GetUser() && source.AccessFor(ci).HasPriv("UNBANME")) &&
+ (u2 != source.GetUser() || !source.AccessFor(ci).HasPriv("UNBANME")) &&
!source.HasPriv("chanserv/kick"))
{
source.Reply(ACCESS_DENIED);