diff options
author | Adam <Adam@anope.org> | 2010-08-17 19:27:37 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2010-08-17 19:27:37 -0400 |
commit | e65d8b2f3dfdb40858259b3bb48ef6998c31e62f (patch) | |
tree | fd845bdef5664d025ab19c262ae2c5e9d23d7bb2 /modules/core/ns_update.cpp | |
parent | 2575008baa5c9d0ca789680da1a3b81dc74786f7 (diff) |
Rewrote the config reader to better handle invalid configs.
This prevents Anope from exploding when /os reload has errors.
Diffstat (limited to 'modules/core/ns_update.cpp')
-rw-r--r-- | modules/core/ns_update.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/core/ns_update.cpp b/modules/core/ns_update.cpp index 7e4ae6e01..baeae756c 100644 --- a/modules/core/ns_update.cpp +++ b/modules/core/ns_update.cpp @@ -34,19 +34,19 @@ class CommandNSUpdate : public Command na->last_seen = time(NULL); if (ircd->vhost) do_on_id(u); - notice_lang(Config.s_NickServ, u, NICK_UPDATE_SUCCESS, Config.s_NickServ.c_str()); + notice_lang(Config->s_NickServ, u, NICK_UPDATE_SUCCESS, Config->s_NickServ.c_str()); return MOD_CONT; } bool OnHelp(User *u, const Anope::string &) { - notice_help(Config.s_NickServ, u, NICK_HELP_UPDATE); + notice_help(Config->s_NickServ, u, NICK_HELP_UPDATE); return true; } void OnServHelp(User *u) { - notice_lang(Config.s_NickServ, u, NICK_HELP_CMD_UPDATE); + notice_lang(Config->s_NickServ, u, NICK_HELP_CMD_UPDATE); } }; |