1
0
mirror of https://github.com/anope/anope.git synced 2026-06-30 20:46:38 +02:00

Make it easier to use fantasy without botserv, and document it

This commit is contained in:
Adam
2014-02-05 07:34:22 -05:00
parent 4f8c4f8fef
commit bb0e2a9a07
3 changed files with 15 additions and 11 deletions
+1 -9
View File
@@ -25,15 +25,7 @@ class BotServCore : public Module
void OnReload(Configuration::Conf *conf) anope_override
{
const Anope::string &bsnick = conf->GetModule(this)->Get<const Anope::string>("client");
if (bsnick.empty())
throw ConfigException(Module::name + ": <client> must be defined");
BotInfo *bi = BotInfo::Find(bsnick, true);
if (!bi)
throw ConfigException(Module::name + ": no bot named " + bsnick);
BotServ = bi;
BotServ = BotInfo::Find(bsnick, true);
}
void OnSetCorrectModes(User *user, Channel *chan, AccessGroup &access, bool &give_modes, bool &take_modes) anope_override