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/ms_send.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/ms_send.cpp')
-rw-r--r-- | modules/core/ms_send.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/core/ms_send.cpp b/modules/core/ms_send.cpp index 67fe265d1..015302a8e 100644 --- a/modules/core/ms_send.cpp +++ b/modules/core/ms_send.cpp @@ -30,18 +30,18 @@ class CommandMSSend : public Command bool OnHelp(User *u, const Anope::string &subcommand) { - notice_help(Config.s_MemoServ, u, MEMO_HELP_SEND); + notice_help(Config->s_MemoServ, u, MEMO_HELP_SEND); return true; } void OnSyntaxError(User *u, const Anope::string &subcommand) { - syntax_error(Config.s_MemoServ, u, "SEND", MEMO_SEND_SYNTAX); + syntax_error(Config->s_MemoServ, u, "SEND", MEMO_SEND_SYNTAX); } void OnServHelp(User *u) { - notice_lang(Config.s_MemoServ, u, MEMO_HELP_CMD_SEND); + notice_lang(Config->s_MemoServ, u, MEMO_HELP_CMD_SEND); } }; |