summaryrefslogtreecommitdiff
path: root/modules/core/cs_set_entrymsg.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2010-09-26 02:33:01 -0400
committerAdam <Adam@anope.org>2010-09-26 02:33:01 -0400
commitd646d455e2655be59f6d5bcc56710ac70548ca37 (patch)
treed236b9d4991d62538a0318f213416396734e72e0 /modules/core/cs_set_entrymsg.cpp
parent05e6815d912f0418f6da25a2106dd718796f02fa (diff)
Changed the language system to use gettext
Diffstat (limited to 'modules/core/cs_set_entrymsg.cpp')
-rw-r--r--modules/core/cs_set_entrymsg.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/modules/core/cs_set_entrymsg.cpp b/modules/core/cs_set_entrymsg.cpp
index 0e864e666..263e37d91 100644
--- a/modules/core/cs_set_entrymsg.cpp
+++ b/modules/core/cs_set_entrymsg.cpp
@@ -29,12 +29,12 @@ class CommandCSSetEntryMsg : public Command
if (params.size() > 1)
{
ci->entry_message = params[1];
- notice_lang(Config->s_ChanServ, u, CHAN_ENTRY_MSG_CHANGED, ci->name.c_str(), ci->entry_message.c_str());
+ u->SendMessage(ChanServ, CHAN_ENTRY_MSG_CHANGED, ci->name.c_str(), ci->entry_message.c_str());
}
else
{
ci->entry_message.clear();
- notice_lang(Config->s_ChanServ, u, CHAN_ENTRY_MSG_UNSET, ci->name.c_str());
+ u->SendMessage(ChanServ, CHAN_ENTRY_MSG_UNSET, ci->name.c_str());
}
return MOD_CONT;
@@ -42,19 +42,19 @@ class CommandCSSetEntryMsg : public Command
bool OnHelp(User *u, const Anope::string &)
{
- notice_help(Config->s_ChanServ, u, CHAN_HELP_SET_ENTRYMSG, "SET");
+ u->SendMessage(ChanServ, CHAN_HELP_SET_ENTRYMSG, "SET");
return true;
}
void OnSyntaxError(User *u, const Anope::string &)
{
// XXX
- syntax_error(Config->s_ChanServ, u, "SET", CHAN_SET_SYNTAX);
+ SyntaxError(ChanServ, u, "SET", CHAN_SET_SYNTAX);
}
void OnServHelp(User *u)
{
- notice_lang(Config->s_ChanServ, u, CHAN_HELP_CMD_SET_ENTRYMSG);
+ u->SendMessage(ChanServ, CHAN_HELP_CMD_SET_ENTRYMSG);
}
};
@@ -67,14 +67,14 @@ class CommandCSSASetEntryMsg : public CommandCSSetEntryMsg
bool OnHelp(User *u, const Anope::string &)
{
- notice_help(Config->s_ChanServ, u, CHAN_HELP_SET_ENTRYMSG, "SASET");
+ u->SendMessage(ChanServ, CHAN_HELP_SET_ENTRYMSG, "SASET");
return true;
}
void OnSyntaxError(User *u, const Anope::string &)
{
// XXX
- syntax_error(Config->s_ChanServ, u, "SASET", CHAN_SASET_SYNTAX);
+ SyntaxError(ChanServ, u, "SASET", CHAN_SASET_SYNTAX);
}
};