1
0
mirror of https://github.com/anope/anope.git synced 2026-06-26 11:36:38 +02:00

Rewrote the config reader to better handle invalid configs.

This prevents Anope from exploding when /os reload has errors.
This commit is contained in:
Adam
2010-08-17 19:27:37 -04:00
parent 2575008baa
commit e65d8b2f3d
195 changed files with 3133 additions and 3249 deletions
+4 -4
View File
@@ -19,7 +19,7 @@ E void moduleAddHostServCmds();
void moduleAddHostServCmds()
{
ModuleManager::LoadModuleList(Config.HostServCoreModules);
ModuleManager::LoadModuleList(Config->HostServCoreModules);
}
/*************************************************************************/
@@ -61,7 +61,7 @@ void get_hostserv_stats(long *nrec, long *memuse)
*/
void hostserv_init()
{
if (!Config.s_HostServ.empty())
if (!Config->s_HostServ.empty())
moduleAddHostServCmds();
}
@@ -170,8 +170,8 @@ void do_on_id(User *u)
u->UpdateHost();
if (!na->hostinfo.GetIdent().empty())
notice_lang(Config.s_HostServ, u, HOST_IDENT_ACTIVATED, na->hostinfo.GetIdent().c_str(), na->hostinfo.GetHost().c_str());
notice_lang(Config->s_HostServ, u, HOST_IDENT_ACTIVATED, na->hostinfo.GetIdent().c_str(), na->hostinfo.GetHost().c_str());
else
notice_lang(Config.s_HostServ, u, HOST_ACTIVATED, na->hostinfo.GetHost().c_str());
notice_lang(Config->s_HostServ, u, HOST_ACTIVATED, na->hostinfo.GetHost().c_str());
}
}