1
0
mirror of https://github.com/anope/anope.git synced 2026-07-04 22:33:12 +02:00

Moved the core pseudo clients out into their own modules

This commit is contained in:
Adam
2011-04-22 03:16:11 -04:00
parent 1782ce260c
commit c8c23158a4
226 changed files with 5187 additions and 4891 deletions
+6 -2
View File
@@ -12,6 +12,7 @@
/*************************************************************************/
#include "module.h"
#include "operserv.h"
class CommandOSModUnLoad : public Command
{
@@ -52,7 +53,7 @@ class CommandOSModUnLoad : public Command
if (status == MOD_ERR_OK)
{
source.Reply(_("Module \002%s\002 unloaded"), mname.c_str());
ircdproto->SendGlobops(OperServ, "%s unloaded module %s", u->nick.c_str(), mname.c_str());
ircdproto->SendGlobops(operserv->Bot(), "%s unloaded module %s", u->nick.c_str(), mname.c_str());
}
else
source.Reply(_("Unable to remove module \002%s\002"), mname.c_str());
@@ -86,7 +87,10 @@ class OSModUnLoad : public Module
this->SetType(CORE);
this->SetPermanent(true);
this->AddCommand(OperServ, &commandosmodunload);
if (!operserv)
throw ModuleException("OperServ is not loaded!");
this->AddCommand(operserv->Bot(), &commandosmodunload);
}
};