mirror of
https://github.com/anope/anope.git
synced 2026-07-05 06:53:12 +02:00
Make it easier to use fantasy without botserv, and document it
This commit is contained in:
+1
-1
@@ -97,7 +97,7 @@ class Fantasy : public Module
|
||||
if (!u || !c || !c->ci || !c->ci->bi || msg.empty() || msg[0] == '\1')
|
||||
return;
|
||||
|
||||
if (!fantasy.HasExt(c->ci))
|
||||
if (Config->GetClient("BotServ") && !fantasy.HasExt(c->ci))
|
||||
return;
|
||||
|
||||
std::vector<Anope::string> params;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user