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/ns_alist.cpp | |
| parent | 0dba0692f9f88275b7d89d511bf22124217bc4c6 (diff) | |
Mostly working language string rewrite with new format strings
Diffstat (limited to 'modules/commands/ns_alist.cpp')
| -rw-r--r-- | modules/commands/ns_alist.cpp | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/modules/commands/ns_alist.cpp b/modules/commands/ns_alist.cpp index ff3b5d037..58ec600fe 100644 --- a/modules/commands/ns_alist.cpp +++ b/modules/commands/ns_alist.cpp @@ -36,7 +36,7 @@ class CommandNSAList : public Command const NickServ::Nick *na = NickServ::FindNick(nick); if (!na) { - source.Reply(NICK_X_NOT_REGISTERED, nick.c_str()); + source.Reply(_("\002{0}\002 isn't registered."), nick); return; } nc = na->nc; @@ -98,28 +98,24 @@ class CommandNSAList : public Command if (!chan_count) { - source.Reply(_("\002%s\002 has no access in any channels."), nc->display.c_str()); + source.Reply(_("\002{0}\002 has no access in any channels."), nc->display); } else { - source.Reply(_("Channels that \002%s\002 has access on:"), nc->display.c_str()); + source.Reply(_("Channels that \002{0}\002 has access on:"), nc->display); for (unsigned i = 0; i < replies.size(); ++i) source.Reply(replies[i]); - source.Reply(_("End of list - %d channels shown."), chan_count); + source.Reply(_("End of list - \002{0}\002 channels shown."), chan_count); } } bool OnHelp(CommandSource &source, const Anope::string &subcommand) override { - this->SendSyntax(source); - source.Reply(" "); source.Reply(_("Lists all channels you have access on.\n" - " \n" - "Channels that have the \037NOEXPIRE\037 option set will be\n" - "prefixed by an exclamation mark. The nickname parameter is\n" - "limited to Services Operators")); + " \n" + "Channels that have the \037NOEXPIRE\037 option set will be prefixed by an exclamation mark. The nickname parameter is limited to Services Operators")); return true; } |
