summaryrefslogtreecommitdiff
path: root/modules/core/cs_set_description.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 /modules/core/cs_set_description.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 'modules/core/cs_set_description.cpp')
-rw-r--r--modules/core/cs_set_description.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/modules/core/cs_set_description.cpp b/modules/core/cs_set_description.cpp
index a00a6d24e..1365de91a 100644
--- a/modules/core/cs_set_description.cpp
+++ b/modules/core/cs_set_description.cpp
@@ -28,26 +28,26 @@ class CommandCSSetDescription : public Command
ci->desc = params[1];
- notice_lang(Config.s_ChanServ, u, CHAN_DESC_CHANGED, ci->name.c_str(), ci->desc.c_str());
+ notice_lang(Config->s_ChanServ, u, CHAN_DESC_CHANGED, ci->name.c_str(), ci->desc.c_str());
return MOD_CONT;
}
bool OnHelp(User *u, const Anope::string &)
{
- notice_help(Config.s_ChanServ, u, CHAN_HELP_SET_DESC, "SET");
+ notice_help(Config->s_ChanServ, u, CHAN_HELP_SET_DESC, "SET");
return true;
}
void OnSyntaxError(User *u, const Anope::string &)
{
// XXX
- syntax_error(Config.s_ChanServ, u, "SET", CHAN_SET_SYNTAX);
+ syntax_error(Config->s_ChanServ, u, "SET", CHAN_SET_SYNTAX);
}
void OnServHelp(User *u)
{
- notice_lang(Config.s_ChanServ, u, CHAN_HELP_CMD_SET_DESC);
+ notice_lang(Config->s_ChanServ, u, CHAN_HELP_CMD_SET_DESC);
}
};
@@ -60,14 +60,14 @@ class CommandCSSASetDescription : public CommandCSSetDescription
bool OnHelp(User *u, const Anope::string &)
{
- notice_help(Config.s_ChanServ, u, CHAN_HELP_SET_DESC, "SASET");
+ notice_help(Config->s_ChanServ, u, CHAN_HELP_SET_DESC, "SASET");
return true;
}
void OnSyntaxError(User *u, const Anope::string &)
{
// XXX
- syntax_error(Config.s_ChanServ, u, "SASET", CHAN_SASET_SYNTAX);
+ syntax_error(Config->s_ChanServ, u, "SASET", CHAN_SASET_SYNTAX);
}
};