diff options
Diffstat (limited to 'modules/commands/ms_rsend.cpp')
-rw-r--r-- | modules/commands/ms_rsend.cpp | 14 |
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 } }; |