diff options
Diffstat (limited to 'modules/core/cs_status.cpp')
-rw-r--r-- | modules/core/cs_status.cpp | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/modules/core/cs_status.cpp b/modules/core/cs_status.cpp index 37a568da2..d1c469022 100644 --- a/modules/core/cs_status.cpp +++ b/modules/core/cs_status.cpp @@ -28,26 +28,35 @@ class CommandCSStatus : public Command User *u2 = finduser(nick); ChanAccess *u2_access = ci->GetAccess(u2); if (u2) - source.Reply(CHAN_STATUS_INFO, ci->name.c_str(), u2->nick.c_str(), u2_access ? u2_access->level : 0); + source.Reply(_("STATUS %s %s %d"), ci->name.c_str(), u2->nick.c_str(), u2_access ? u2_access->level : 0); else /* !u2 */ - source.Reply(CHAN_STATUS_NOTONLINE, nick.c_str()); + source.Reply(_("STATUS ERROR Nick %s not online"), nick.c_str()); return MOD_CONT; } bool OnHelp(CommandSource &source, const Anope::string &subcommand) { - source.Reply(CHAN_SERVADMIN_HELP_STATUS); + source.Reply(_("Syntax: \002STATUS \037channel\037 \037nickname\037\002\n" + " \n" + "Returns the current access level of the given nick on the\n" + "given channel. The reply is of the form:\n" + " \n" + " STATUS \037channel\037 \037nickname\037 \037access-level\037\n" + " \n" + "If an error occurs, the reply will be in the form:\n" + " \n" + " STATUS ERROR \037error-message\037")); return true; } void OnSyntaxError(CommandSource &source, const Anope::string &subcommand) { - SyntaxError(source, "STATUS", CHAN_STATUS_SYNTAX); + SyntaxError(source, "STATUS", _("STATUS \037channel\037 \037item\037")); } void OnServHelp(CommandSource &source) { - source.Reply(CHAN_HELP_CMD_STATUS); + source.Reply(_(" STATUS Returns the current access level of a user on a channel")); } }; |