summaryrefslogtreecommitdiff
path: root/src/hostserv.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2010-08-17 19:27:37 -0400
committerAdam <Adam@anope.org>2010-08-17 19:27:37 -0400
commite65d8b2f3dfdb40858259b3bb48ef6998c31e62f (patch)
treefd845bdef5664d025ab19c262ae2c5e9d23d7bb2 /src/hostserv.cpp
parent2575008baa5c9d0ca789680da1a3b81dc74786f7 (diff)
Rewrote the config reader to better handle invalid configs.
This prevents Anope from exploding when /os reload has errors.
Diffstat (limited to 'src/hostserv.cpp')
-rw-r--r--src/hostserv.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/hostserv.cpp b/src/hostserv.cpp
index 86e0c5c85..31ff713f8 100644
--- a/src/hostserv.cpp
+++ b/src/hostserv.cpp
@@ -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());
}
}