summaryrefslogtreecommitdiff
path: root/modules/core/ms_rsend.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/ms_rsend.cpp
parent05e6815d912f0418f6da25a2106dd718796f02fa (diff)
Changed the language system to use gettext
Diffstat (limited to 'modules/core/ms_rsend.cpp')
-rw-r--r--modules/core/ms_rsend.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/modules/core/ms_rsend.cpp b/modules/core/ms_rsend.cpp
index 6ed6b3b03..01b46fbe7 100644
--- a/modules/core/ms_rsend.cpp
+++ b/modules/core/ms_rsend.cpp
@@ -29,7 +29,7 @@ class CommandMSRSend : public Command
/* prevent user from rsend to themselves */
if ((na = findnick(nick)) && na->nc == u->Account())
{
- notice_lang(Config->s_MemoServ, u, MEMO_NO_RSEND_SELF);
+ u->SendMessage(MemoServ, MEMO_NO_RSEND_SELF);
return MOD_CONT;
}
@@ -39,7 +39,7 @@ class CommandMSRSend : public Command
if (u->Account()->IsServicesOper())
memo_send(u, nick, text, 3);
else
- notice_lang(Config->s_MemoServ, u, ACCESS_DENIED);
+ u->SendMessage(MemoServ, ACCESS_DENIED);
}
else if (Config->MSMemoReceipt == 2)
/* Everybody can use rsend */
@@ -48,7 +48,7 @@ class CommandMSRSend : public Command
{
/* rsend has been disabled */
Log() << "MSMemoReceipt is set misconfigured to " << Config->MSMemoReceipt;
- notice_lang(Config->s_MemoServ, u, MEMO_RSEND_DISABLED);
+ u->SendMessage(MemoServ, MEMO_RSEND_DISABLED);
}
return MOD_CONT;
@@ -56,18 +56,18 @@ class CommandMSRSend : public Command
bool OnHelp(User *u, const Anope::string &subcommand)
{
- notice_help(Config->s_MemoServ, u, MEMO_HELP_RSEND);
+ u->SendMessage(MemoServ, MEMO_HELP_RSEND);
return true;
}
void OnSyntaxError(User *u, const Anope::string &subcommand)
{
- syntax_error(Config->s_MemoServ, u, "RSEND", MEMO_RSEND_SYNTAX);
+ SyntaxError(MemoServ, u, "RSEND", MEMO_RSEND_SYNTAX);
}
void OnServHelp(User *u)
{
- notice_lang(Config->s_MemoServ, u, MEMO_HELP_CMD_RSEND);
+ u->SendMessage(MemoServ, MEMO_HELP_CMD_RSEND);
}
};