1
0
mirror of https://github.com/anope/anope.git synced 2026-07-09 02:43:13 +02:00

Rewrote how commands are handled within Anope.

This allows naming commands and having spaces within command names.
This commit is contained in:
Adam
2011-07-14 02:31:12 -04:00
parent 924f6849fe
commit f858164dee
227 changed files with 8808 additions and 12352 deletions
+2 -3
View File
@@ -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 &param)
{
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;