1
0
mirror of https://github.com/anope/anope.git synced 2026-07-06 22:03:12 +02:00

Moved the language strings which are only used once

out of the core and into the modules that use them.
This commit is contained in:
Adam
2011-02-04 15:30:31 -05:00
parent c362a1e077
commit 08583dc107
226 changed files with 42289 additions and 45412 deletions
+14 -5
View File
@@ -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"));
}
};