summaryrefslogtreecommitdiff
path: root/modules/core/cs_getkey.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_getkey.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_getkey.cpp')
-rw-r--r--modules/core/cs_getkey.cpp14
1 files changed, 8 insertions, 6 deletions
diff --git a/modules/core/cs_getkey.cpp b/modules/core/cs_getkey.cpp
index cde4e7bb7..0842d2caf 100644
--- a/modules/core/cs_getkey.cpp
+++ b/modules/core/cs_getkey.cpp
@@ -29,38 +29,40 @@ class CommandCSGetKey : public Command
if (!check_access(u, ci, CA_GETKEY) && !u->Account()->HasCommand("chanserv/getkey"))
{
- source.Reply(ACCESS_DENIED);
+ source.Reply(LanguageString::ACCESS_DENIED);
return MOD_CONT;
}
Anope::string key;
if (!ci->c || !ci->c->GetParam(CMODE_KEY, key))
{
- source.Reply(CHAN_GETKEY_NOKEY, chan.c_str());
+ source.Reply(_("The channel \002%s\002 has no key."), chan.c_str());
return MOD_CONT;
}
bool override = !check_access(u, ci, CA_GETKEY);
Log(override ? LOG_OVERRIDE : LOG_COMMAND, u, this, ci);
- source.Reply(CHAN_GETKEY_KEY, chan.c_str(), key.c_str());
+ source.Reply(_("Key for channel \002%s\002 is \002%s\002."), chan.c_str(), key.c_str());
return MOD_CONT;
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand)
{
- source.Reply(CHAN_HELP_GETKEY);
+ source.Reply(_("Syntax: \002GETKEY \037channel\037\002\n"
+ " \n"
+ "Returns the key of the given channel."));
return true;
}
void OnSyntaxError(CommandSource &source, const Anope::string &subcommand)
{
- SyntaxError(source, "GETKEY", CHAN_GETKEY_SYNTAX);
+ SyntaxError(source, "GETKEY", _("GETKEY \037channel\037"));
}
void OnServHelp(CommandSource &source)
{
- source.Reply(CHAN_HELP_CMD_GETKEY);
+ source.Reply(_(" GETKEY Returns the key of the given channel"));
}
};