diff options
author | Adam <Adam@anope.org> | 2011-02-04 15:30:31 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2011-02-04 15:30:31 -0500 |
commit | 08583dc107974252312fb7c87532c9deb68e7f63 (patch) | |
tree | 0c42ec7422752cabd8352b49be976b4dc100c56c /modules/core/os_staff.cpp | |
parent | c362a1e077d5ede9eadbe79483f2a755b5883e9a (diff) |
Moved the language strings which are only used once
out of the core and into the modules that use them.
Diffstat (limited to 'modules/core/os_staff.cpp')
-rw-r--r-- | modules/core/os_staff.cpp | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/modules/core/os_staff.cpp b/modules/core/os_staff.cpp index 5b1af9ae1..1f6b60eb3 100644 --- a/modules/core/os_staff.cpp +++ b/modules/core/os_staff.cpp @@ -22,7 +22,7 @@ class CommandOSStaff : public Command CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> ¶ms) { - source.Reply(OPER_STAFF_LIST_HEADER); + source.Reply(_("On Level Nick")); for (std::list<std::pair<Anope::string, Anope::string> >::iterator it = Config->Opers.begin(), it_end = Config->Opers.end(); it != it_end; ++it) { @@ -37,28 +37,30 @@ class CommandOSStaff : public Command User *u2 = *uit; if (na->nick.equals_ci(u2->nick)) - source.Reply(OPER_STAFF_FORMAT, '*', type.c_str(), u2->nick.c_str()); + source.Reply(_(" %c %s %s"), '*', type.c_str(), u2->nick.c_str()); else - source.Reply(OPER_STAFF_AFORMAT, '*', type.c_str(), na->nick.c_str(), u2->nick.c_str()); + source.Reply(_(" %c %s %s [%s]"), '*', type.c_str(), na->nick.c_str(), u2->nick.c_str()); } if (nc->Users.empty()) - source.Reply(OPER_STAFF_FORMAT, ' ', type.c_str(), na->nick.c_str()); + source.Reply(_(" %c %s %s"), ' ', type.c_str(), na->nick.c_str()); } } - source.Reply(END_OF_ANY_LIST, "Staff"); + source.Reply(LanguageString::END_OF_ANY_LIST, "Staff"); return MOD_CONT; } bool OnHelp(CommandSource &source, const Anope::string &subcommand) { - source.Reply(OPER_HELP_STAFF); + source.Reply(_("Syntax: \002STAFF\002\n" + "Displays all Services Staff nicks along with level\n" + "and on-line status.")); return true; } void OnServHelp(CommandSource &source) { - source.Reply(OPER_HELP_CMD_STAFF); + source.Reply(_(" STAFF Display Services staff and online status")); } }; |