summaryrefslogtreecommitdiff
path: root/modules/extra/m_helpchan.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/extra/m_helpchan.cpp')
-rw-r--r--modules/extra/m_helpchan.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/extra/m_helpchan.cpp b/modules/extra/m_helpchan.cpp
index 08f90b644..6b450e581 100644
--- a/modules/extra/m_helpchan.cpp
+++ b/modules/extra/m_helpchan.cpp
@@ -26,10 +26,10 @@ class HelpChannel : public Module
{
if (Name == CMODE_OP && c && c->ci && c->name.equals_ci(this->HelpChan))
{
- User *u = finduser(param);
+ User *u = User::Find(param);
if (u && c->ci->AccessFor(u).HasPriv("OPDEOPME"))
- u->SetMode(findbot(Config->OperServ), UMODE_HELPOP);
+ u->SetMode(OperServ, UMODE_HELPOP);
}
return EVENT_CONTINUE;