1
0
mirror of https://github.com/anope/anope.git synced 2026-07-09 11:13:13 +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
+7 -3
View File
@@ -12,6 +12,7 @@
/*************************************************************************/
#include "module.h"
#include "operserv.h"
class CommandOSKick : public Command
{
@@ -46,7 +47,7 @@ class CommandOSKick : public Command
return MOD_CONT;
}
c->Kick(OperServ, u2, "%s (%s)", u->nick.c_str(), s.c_str());
c->Kick(operserv->Bot(), u2, "%s (%s)", u->nick.c_str(), s.c_str());
Log(LOG_ADMIN, u, this) << "on " << u2->nick << " in " << c->name;
return MOD_CONT;
}
@@ -60,7 +61,7 @@ class CommandOSKick : public Command
"command. The kick message will have the nickname of the\n"
"IRCop sending the KICK command prepended; for example:\n"
" \n"
"*** SpamMan has been kicked off channel #my_channel by %s (Alcan (Flood))"), OperServ->nick.c_str());
"*** SpamMan has been kicked off channel #my_channel by %s (Alcan (Flood))"), Config->s_OperServ.c_str());
return true;
}
@@ -80,7 +81,10 @@ class OSKick : public Module
this->SetAuthor("Anope");
this->SetType(CORE);
this->AddCommand(OperServ, &commandoskick);
if (!operserv)
throw ModuleException("OperServ is not loaded!");
this->AddCommand(operserv->Bot(), &commandoskick);
}
};