diff options
Diffstat (limited to 'modules/extra/m_helpchan.cpp')
-rw-r--r-- | modules/extra/m_helpchan.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/modules/extra/m_helpchan.cpp b/modules/extra/m_helpchan.cpp index 6e5cdd2be..5da492a3a 100644 --- a/modules/extra/m_helpchan.cpp +++ b/modules/extra/m_helpchan.cpp @@ -6,7 +6,6 @@ */ #include "module.h" -#include "operserv.h" class HelpChannel : public Module { @@ -25,12 +24,12 @@ class HelpChannel : public Module EventReturn OnChannelModeSet(Channel *c, ChannelModeName Name, const Anope::string ¶m) { - if (Name == CMODE_OP && operserv && c && c->ci && c->name.equals_ci(this->HelpChan)) + if (Name == CMODE_OP && c && c->ci && c->name.equals_ci(this->HelpChan)) { User *u = finduser(param); if (u && check_access(u, c->ci, CA_OPDEOPME)) - u->SetMode(operserv->Bot(), UMODE_HELPOP); + u->SetMode(findbot(Config->OperServ), UMODE_HELPOP); } return EVENT_CONTINUE; |