summaryrefslogtreecommitdiff
path: root/modules/core/cs_set_keeptopic.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/core/cs_set_keeptopic.cpp')
-rw-r--r--modules/core/cs_set_keeptopic.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/modules/core/cs_set_keeptopic.cpp b/modules/core/cs_set_keeptopic.cpp
index d5b718d71..2f4aa6400 100644
--- a/modules/core/cs_set_keeptopic.cpp
+++ b/modules/core/cs_set_keeptopic.cpp
@@ -29,12 +29,12 @@ class CommandCSSetKeepTopic : public Command
if (params[1].equals_ci("ON"))
{
ci->SetFlag(CI_KEEPTOPIC);
- notice_lang(Config->s_ChanServ, u, CHAN_SET_KEEPTOPIC_ON, ci->name.c_str());
+ u->SendMessage(ChanServ, CHAN_SET_KEEPTOPIC_ON, ci->name.c_str());
}
else if (params[1].equals_ci("OFF"))
{
ci->UnsetFlag(CI_KEEPTOPIC);
- notice_lang(Config->s_ChanServ, u, CHAN_SET_KEEPTOPIC_OFF, ci->name.c_str());
+ u->SendMessage(ChanServ, CHAN_SET_KEEPTOPIC_OFF, ci->name.c_str());
}
else
this->OnSyntaxError(u, "KEEPTOPIC");
@@ -44,18 +44,18 @@ class CommandCSSetKeepTopic : public Command
bool OnHelp(User *u, const Anope::string &)
{
- notice_help(Config->s_ChanServ, u, CHAN_HELP_SET_KEEPTOPIC, "SET");
+ u->SendMessage(ChanServ, CHAN_HELP_SET_KEEPTOPIC, "SET");
return true;
}
void OnSyntaxError(User *u, const Anope::string &)
{
- syntax_error(Config->s_ChanServ, u, "SET KEEPTOPIC", CHAN_SET_KEEPTOPIC_SYNTAX);
+ SyntaxError(ChanServ, u, "SET KEEPTOPIC", CHAN_SET_KEEPTOPIC_SYNTAX);
}
void OnServHelp(User *u)
{
- notice_lang(Config->s_ChanServ, u, CHAN_HELP_CMD_SET_KEEPTOPIC);
+ u->SendMessage(ChanServ, CHAN_HELP_CMD_SET_KEEPTOPIC);
}
};
@@ -68,13 +68,13 @@ class CommandCSSASetKeepTopic : public CommandCSSetKeepTopic
bool OnHelp(User *u, const Anope::string &)
{
- notice_help(Config->s_ChanServ, u, CHAN_HELP_SET_KEEPTOPIC, "SASET");
+ u->SendMessage(ChanServ, CHAN_HELP_SET_KEEPTOPIC, "SASET");
return true;
}
void OnSyntaxError(User *u, const Anope::string &)
{
- syntax_error(Config->s_ChanServ, u, "SET KEEPTOPIC", CHAN_SASET_KEEPTOPIC_SYNTAX);
+ SyntaxError(ChanServ, u, "SET KEEPTOPIC", CHAN_SASET_KEEPTOPIC_SYNTAX);
}
};