summaryrefslogtreecommitdiff
path: root/modules/commands/ms_rsend.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2014-06-23 07:12:41 -0400
committerAdam <Adam@anope.org>2014-06-23 07:12:41 -0400
commit148b26f687ce85dc01e852a2358b03d493757ada (patch)
treef81ea553d0384ec6063eff45cfaff5aa92aaa1c9 /modules/commands/ms_rsend.cpp
parent0dba0692f9f88275b7d89d511bf22124217bc4c6 (diff)
Mostly working language string rewrite with new format strings
Diffstat (limited to 'modules/commands/ms_rsend.cpp')
-rw-r--r--modules/commands/ms_rsend.cpp14
1 files changed, 8 insertions, 6 deletions
diff --git a/modules/commands/ms_rsend.cpp b/modules/commands/ms_rsend.cpp
index 98315845c..101a67816 100644
--- a/modules/commands/ms_rsend.cpp
+++ b/modules/commands/ms_rsend.cpp
@@ -28,7 +28,7 @@ class CommandMSRSend : public Command
if (Anope::ReadOnly && !source.IsOper())
{
- source.Reply(MEMO_SEND_DISABLED);
+ source.Reply(_("Sorry, memo sending is temporarily disabled."));
return;
}
@@ -44,19 +44,19 @@ class CommandMSRSend : public Command
}
if (Config->GetModule(this->owner)->Get<bool>("operonly") && !source.IsServicesOper())
- source.Reply(ACCESS_DENIED);
+ source.Reply(_("Access denied. This command is for operators only."));
else
{
MemoServ::MemoServService::MemoResult result = MemoServ::service->Send(source.GetNick(), nick, text);
if (result == MemoServ::MemoServService::MEMO_INVALID_TARGET)
- source.Reply(_("\002%s\002 is not a registered unforbidden nick or channel."), nick.c_str());
+ source.Reply(_("\002{0}\002 isn't registered."), nick);
else if (result == MemoServ::MemoServService::MEMO_TOO_FAST)
- source.Reply(_("Please wait %d seconds before using the %s command again."), Config->GetModule("memoserv")->Get<time_t>("senddelay"), source.command.c_str());
+ source.Reply(_("Please wait \002{0}\002 seconds before using the \002{1}\002 command again."), Config->GetModule("memoserv")->Get<time_t>("senddelay"), source.command);
else if (result == MemoServ::MemoServService::MEMO_TARGET_FULL)
- source.Reply(_("Sorry, %s currently has too many memos and cannot receive more."), nick.c_str());
+ source.Reply(_("Sorry, \002{0}\002 currently has too many memos and cannot receive more."), nick);
else
{
- source.Reply(_("Memo sent to \002%s\002."), nick.c_str());
+ source.Reply(_("Memo sent to \002{0}\002."), nick);
bool ischan, isregistered;
MemoServ::MemoInfo *mi = MemoServ::service->GetMemoInfo(nick, ischan, isregistered, false);
@@ -71,6 +71,7 @@ class CommandMSRSend : public Command
bool OnHelp(CommandSource &source, const Anope::string &subcommand) override
{
+#if 0
this->SendSyntax(source);
source.Reply(" ");
source.Reply(_("Sends the named \037nick\037 or \037channel\037 a memo containing\n"
@@ -81,6 +82,7 @@ class CommandMSRSend : public Command
"memo will be sent to the sender informing him/her that the memo\n"
"has been read."));
return true;
+#endif
}
};