mirror of
https://github.com/anope/anope.git
synced 2026-07-10 09:03:13 +02:00
Moved the core pseudo clients out into their own modules
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
/*************************************************************************/
|
||||
|
||||
#include "module.h"
|
||||
#include "chanserv.h"
|
||||
|
||||
#define CHECKLEV(lev) (ci->levels[(lev)] != ACCESS_INVALID && access->level >= ci->levels[(lev)])
|
||||
|
||||
@@ -138,22 +139,25 @@ class CSSetXOP : public Module
|
||||
this->SetAuthor("Anope");
|
||||
this->SetType(CORE);
|
||||
|
||||
Command *c = FindCommand(ChanServ, "SET");
|
||||
if (!chanserv)
|
||||
throw ModuleException("ChanServ is not loaded!");
|
||||
|
||||
Command *c = FindCommand(chanserv->Bot(), "SET");
|
||||
if (c)
|
||||
c->AddSubcommand(this, &commandcssetxop);
|
||||
|
||||
c = FindCommand(ChanServ, "SASET");
|
||||
c = FindCommand(chanserv->Bot(), "SASET");
|
||||
if (c)
|
||||
c->AddSubcommand(this, &commandcssasetxop);
|
||||
}
|
||||
|
||||
~CSSetXOP()
|
||||
{
|
||||
Command *c = FindCommand(ChanServ, "SET");
|
||||
Command *c = FindCommand(chanserv->Bot(), "SET");
|
||||
if (c)
|
||||
c->DelSubcommand(&commandcssetxop);
|
||||
|
||||
c = FindCommand(ChanServ, "SASET");
|
||||
c = FindCommand(chanserv->Bot(), "SASET");
|
||||
if (c)
|
||||
c->DelSubcommand(&commandcssasetxop);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user