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/os_shutdown.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/os_shutdown.cpp')
-rw-r--r-- | modules/core/os_shutdown.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/core/os_shutdown.cpp b/modules/core/os_shutdown.cpp index c92713f83..04e303b31 100644 --- a/modules/core/os_shutdown.cpp +++ b/modules/core/os_shutdown.cpp @@ -24,21 +24,21 @@ class CommandOSShutdown : public Command { quitmsg = "SHUTDOWN command received from " + u->nick; - if (Config.GlobalOnCycle) - oper_global("", "%s", Config.GlobalOnCycleMessage.c_str()); + if (Config->GlobalOnCycle) + oper_global("", "%s", Config->GlobalOnCycleMessage.c_str()); shutting_down = true; return MOD_CONT; } bool OnHelp(User *u, const Anope::string &subcommand) { - notice_help(Config.s_OperServ, u, OPER_HELP_SHUTDOWN); + notice_help(Config->s_OperServ, u, OPER_HELP_SHUTDOWN); return true; } void OnServHelp(User *u) { - notice_lang(Config.s_OperServ, u, OPER_HELP_CMD_SHUTDOWN); + notice_lang(Config->s_OperServ, u, OPER_HELP_CMD_SHUTDOWN); } }; |