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_restart.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_restart.cpp')
-rw-r--r-- | modules/core/os_restart.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/core/os_restart.cpp b/modules/core/os_restart.cpp index 00f273958..c1d8c35ff 100644 --- a/modules/core/os_restart.cpp +++ b/modules/core/os_restart.cpp @@ -24,8 +24,8 @@ class CommandOSRestart : public Command { quitmsg = "RESTART 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()); /* raise(SIGHUP); */ do_restart_services(); return MOD_CONT; @@ -33,13 +33,13 @@ class CommandOSRestart : public Command bool OnHelp(User *u, const Anope::string &subcommand) { - notice_help(Config.s_OperServ, u, OPER_HELP_RESTART); + notice_help(Config->s_OperServ, u, OPER_HELP_RESTART); return true; } void OnServHelp(User *u) { - notice_lang(Config.s_OperServ, u, OPER_HELP_CMD_RESTART); + notice_lang(Config->s_OperServ, u, OPER_HELP_CMD_RESTART); } }; |