diff options
author | Adam <Adam@anope.org> | 2014-06-23 07:12:41 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2014-06-23 07:12:41 -0400 |
commit | 148b26f687ce85dc01e852a2358b03d493757ada (patch) | |
tree | f81ea553d0384ec6063eff45cfaff5aa92aaa1c9 /modules/commands/ms_send.cpp | |
parent | 0dba0692f9f88275b7d89d511bf22124217bc4c6 (diff) |
Mostly working language string rewrite with new format strings
Diffstat (limited to 'modules/commands/ms_send.cpp')
-rw-r--r-- | modules/commands/ms_send.cpp | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/modules/commands/ms_send.cpp b/modules/commands/ms_send.cpp index 2cf7d476e..9e5ada796 100644 --- a/modules/commands/ms_send.cpp +++ b/modules/commands/ms_send.cpp @@ -18,7 +18,7 @@ class CommandMSSend : public Command CommandMSSend(Module *creator) : Command(creator, "memoserv/send", 2, 2) { this->SetDesc(_("Send a memo to a nick or channel")); - this->SetSyntax(_("{\037nick\037 | \037channel\037} \037memo-text\037")); + this->SetSyntax(_("{\037user\037 | \037channel\037} \037memo-text\037")); } void Execute(CommandSource &source, const std::vector<Anope::string> ¶ms) override @@ -31,29 +31,26 @@ class CommandMSSend : public Command if (Anope::ReadOnly && !source.IsOper()) { - source.Reply(MEMO_SEND_DISABLED); + source.Reply(_("Sorry, memo sending is temporarily disabled.")); return; } MemoServ::MemoServService::MemoResult result = MemoServ::service->Send(source.GetNick(), nick, text); if (result == MemoServ::MemoServService::MEMO_SUCCESS) - source.Reply(_("Memo sent to \002%s\002."), nick.c_str()); + source.Reply(_("\002{0}\002 isn't registered."), nick); else if (result == MemoServ::MemoServService::MEMO_INVALID_TARGET) source.Reply(_("\002%s\002 is not a registered unforbidden nick or channel."), nick.c_str()); 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); } bool OnHelp(CommandSource &source, const Anope::string &subcommand) override { - this->SendSyntax(source); - source.Reply(" "); - source.Reply(_("Sends the named \037nick\037 or \037channel\037 a memo containing\n" - "\037memo-text\037. When sending to a nickname, the recipient will\n" - "receive a notice that he/she has a new memo. The target\n" - "nickname/channel must be registered.")); + source.Reply(_("Sends the named \037user\037 or \037channel\037 a memo containing \037memo-text\037." + " The recipient will receive a notice that they have a new memo." + " The target user or channel must be registered.")); return true; } }; |