summaryrefslogtreecommitdiff
path: root/modules/core/cs_clearusers.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2011-02-04 15:30:31 -0500
committerAdam <Adam@anope.org>2011-02-04 15:30:31 -0500
commit08583dc107974252312fb7c87532c9deb68e7f63 (patch)
tree0c42ec7422752cabd8352b49be976b4dc100c56c /modules/core/cs_clearusers.cpp
parentc362a1e077d5ede9eadbe79483f2a755b5883e9a (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/cs_clearusers.cpp')
-rw-r--r--modules/core/cs_clearusers.cpp17
1 files changed, 11 insertions, 6 deletions
diff --git a/modules/core/cs_clearusers.cpp b/modules/core/cs_clearusers.cpp
index e171814dd..b4786209c 100644
--- a/modules/core/cs_clearusers.cpp
+++ b/modules/core/cs_clearusers.cpp
@@ -31,9 +31,9 @@ class CommandCSClearUsers : public Command
Anope::string modebuf;
if (!c)
- source.Reply(CHAN_X_NOT_IN_USE, chan.c_str());
+ source.Reply(LanguageString::CHAN_X_NOT_IN_USE, chan.c_str());
else if (!check_access(u, ci, CA_FOUNDER))
- source.Reply(ACCESS_DENIED);
+ source.Reply(LanguageString::ACCESS_DENIED);
Anope::string buf = "CLEARUSERS command from " + u->nick + " (" + u->Account()->display + ")";
@@ -44,25 +44,30 @@ class CommandCSClearUsers : public Command
c->Kick(NULL, uc->user, "%s", buf.c_str());
}
- source.Reply(CHAN_CLEARED_USERS, chan.c_str());
+ source.Reply(_("All users have been kicked from \2%s\2."), chan.c_str());
return MOD_CONT;
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand)
{
- source.Reply(CHAN_HELP_CLEARUSERS);
+ source.Reply(_("Syntax: \002CLEARUSERS \037channel\037\002\n"
+ " \n"
+ "Tells %S to clear (kick) all users certain settings on a channel."
+ " \n"
+ "By default, limited to those with founder access on the\n"
+ "channel."));
return true;
}
void OnSyntaxError(CommandSource &source, const Anope::string &subcommand)
{
- SyntaxError(source, "CLEAR", CHAN_CLEARUSERS_SYNTAX);
+ SyntaxError(source, "CLEAR", _("CLEARUSERS \037channel\037"));
}
void OnServHelp(CommandSource &source)
{
- source.Reply(CHAN_HELP_CMD_CLEARUSERS);
+ source.Reply(_(" CLEARUSERS Tells ChanServ to clear (kick) all users on a channel"));
}
};