summaryrefslogtreecommitdiff
path: root/modules/core/cs_set_founder.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/core/cs_set_founder.cpp')
-rw-r--r--modules/core/cs_set_founder.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/core/cs_set_founder.cpp b/modules/core/cs_set_founder.cpp
index aeb29cada..e71fd4d3e 100644
--- a/modules/core/cs_set_founder.cpp
+++ b/modules/core/cs_set_founder.cpp
@@ -32,13 +32,13 @@ class CommandCSSetFounder : public Command
return;
}
- if (!this->permission.empty() && !check_access(u, ci, CA_SET))
+ if (!this->permission.empty() && !ci->HasPriv(u, CA_SET))
{
source.Reply(ACCESS_DENIED);
return;
}
- if (this->permission.empty() && (ci->HasFlag(CI_SECUREFOUNDER) ? !IsFounder(u, ci) : !check_access(u, ci, CA_FOUNDER)))
+ if (this->permission.empty() && (ci->HasFlag(CI_SECUREFOUNDER) ? !IsFounder(u, ci) : !ci->HasPriv(u, CA_FOUNDER)))
{
source.Reply(ACCESS_DENIED);
return;