1
0
mirror of https://github.com/anope/anope.git synced 2026-07-10 02:03: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
+6 -2
View File
@@ -13,6 +13,7 @@
/*************************************************************************/
#include "module.h"
#include "botserv.h"
class CommandBSInfo : public Command
{
@@ -227,7 +228,7 @@ class CommandBSInfo : public Command
"If the parameter is a channel, then you'll get information\n"
"such as enabled kickers. If the parameter is a nick,\n"
"you'll get information about a bot, such as creation\n"
"time or number of channels it is on."), NickServ->nick.c_str());
"time or number of channels it is on."), Config->s_NickServ.c_str());
return true;
}
@@ -247,7 +248,10 @@ class BSInfo : public Module
this->SetAuthor("Anope");
this->SetType(CORE);
this->AddCommand(BotServ, &commandbsinfo);
if (!botserv)
throw ModuleException("BotServ is not loaded!");
this->AddCommand(botserv->Bot(), &commandbsinfo);
}
};