1
0
mirror of https://github.com/anope/anope.git synced 2026-06-28 23:06:39 +02:00

Get rid of the remaining references in the core to specific services. Move more stuff out of the core to the proper modules.

This commit is contained in:
Adam
2013-05-26 17:13:11 -04:00
parent f2dee1e1d6
commit 22658d63bd
164 changed files with 835 additions and 2137 deletions
+12
View File
@@ -589,6 +589,18 @@ Block *Conf::GetModule(const Anope::string &mname)
return GetModule(mname);
}
BotInfo *Conf::GetClient(const Anope::string &cname)
{
Anope::map<Anope::string>::iterator it = bots.find(cname);
if (it != bots.end())
return BotInfo::Find(!it->second.empty() ? it->second : cname, true);
Block *block = GetModule(cname.lower());
const Anope::string &client = block->Get<const Anope::string>("client");
bots[cname] = client;
return GetClient(cname);
}
File::File(const Anope::string &n, bool e) : name(n), executable(e), fp(NULL)
{
}