diff options
author | Adam <Adam@anope.org> | 2014-02-05 07:34:22 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2014-02-05 08:46:51 -0500 |
commit | bb0e2a9a07e0931532d5f77486e2b11de2fa2997 (patch) | |
tree | a1580942a39b213be3b3166c5a1e0886d282fea9 /modules/pseudoclients/botserv.cpp | |
parent | 4f8c4f8fefd55f36d4c626e00bf09555928ecaa4 (diff) |
Make it easier to use fantasy without botserv, and document it
Diffstat (limited to 'modules/pseudoclients/botserv.cpp')
-rw-r--r-- | modules/pseudoclients/botserv.cpp | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/modules/pseudoclients/botserv.cpp b/modules/pseudoclients/botserv.cpp index d6dd32e71..ddcbd76e6 100644 --- a/modules/pseudoclients/botserv.cpp +++ b/modules/pseudoclients/botserv.cpp @@ -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 |