summaryrefslogtreecommitdiff
path: root/modules/core/cs_unban.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/core/cs_unban.cpp')
-rw-r--r--modules/core/cs_unban.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/core/cs_unban.cpp b/modules/core/cs_unban.cpp
index dbd0d9ae3..cc3c68e91 100644
--- a/modules/core/cs_unban.cpp
+++ b/modules/core/cs_unban.cpp
@@ -39,7 +39,7 @@ class CommandCSUnban : public Command
return;
}
- if (!check_access(u, ci, CA_UNBAN))
+ if (!ci->HasPriv(u, CA_UNBAN))
{
source.Reply(ACCESS_DENIED);
return;