summaryrefslogtreecommitdiff
path: root/modules/chanserv/cs_unban.cpp
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2024-02-27 10:16:05 +0000
committerSadie Powell <sadie@witchery.services>2024-02-27 10:19:44 +0000
commit7640fad30cc2a3d61e67a7075c27f26400d4779f (patch)
treef313f0e7cf6fafd1c94f7bd2b3650a207f941ccc /modules/chanserv/cs_unban.cpp
parent9f6d3787559febb48611b1477eaa6a35beadf71a (diff)
Simplify several boolean expressions.
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);