diff options
author | Adam <Adam@anope.org> | 2011-07-14 02:31:12 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2011-07-14 02:31:12 -0400 |
commit | f858164deed48f2dcacd5ffc06a55398a54da7e8 (patch) | |
tree | 89c3cf36bd8e94942370135218d67d6d17ee222e /modules/extra/m_helpchan.cpp | |
parent | 924f6849fee4598a1a3a7f1a98d96b79e5ffd3b4 (diff) |
Rewrote how commands are handled within Anope.
This allows naming commands and having spaces within command names.
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; |