summaryrefslogtreecommitdiff
path: root/modules/core/cs_topic.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_topic.cpp
parent05e6815d912f0418f6da25a2106dd718796f02fa (diff)
Changed the language system to use gettext
Diffstat (limited to 'modules/core/cs_topic.cpp')
-rw-r--r--modules/core/cs_topic.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/core/cs_topic.cpp b/modules/core/cs_topic.cpp
index fbb9a23f4..e178aa9f2 100644
--- a/modules/core/cs_topic.cpp
+++ b/modules/core/cs_topic.cpp
@@ -29,9 +29,9 @@ class CommandCSTopic : public Command
Channel *c = ci->c;
if (!c)
- notice_lang(Config->s_ChanServ, u, CHAN_X_NOT_IN_USE, chan.c_str());
+ u->SendMessage(ChanServ, CHAN_X_NOT_IN_USE, chan.c_str());
else if (!check_access(u, ci, CA_TOPIC) && !u->Account()->HasCommand("chanserv/topic"))
- notice_lang(Config->s_ChanServ, u, ACCESS_DENIED);
+ u->SendMessage(ChanServ, ACCESS_DENIED);
else
{
bool has_topiclock = ci->HasFlag(CI_TOPICLOCK);
@@ -48,18 +48,18 @@ class CommandCSTopic : public Command
bool OnHelp(User *u, const Anope::string &subcommand)
{
- notice_help(Config->s_ChanServ, u, CHAN_HELP_TOPIC);
+ u->SendMessage(ChanServ, CHAN_HELP_TOPIC);
return true;
}
void OnSyntaxError(User *u, const Anope::string &subcommand)
{
- syntax_error(Config->s_ChanServ, u, "TOPIC", CHAN_TOPIC_SYNTAX);
+ SyntaxError(ChanServ, u, "TOPIC", CHAN_TOPIC_SYNTAX);
}
void OnServHelp(User *u)
{
- notice_lang(Config->s_ChanServ, u, CHAN_HELP_CMD_TOPIC);
+ u->SendMessage(ChanServ, CHAN_HELP_CMD_TOPIC);
}
};