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/cs_topic.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/cs_topic.cpp')
-rw-r--r-- | modules/core/cs_topic.cpp | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/modules/core/cs_topic.cpp b/modules/core/cs_topic.cpp index 46ca69739..20005b07b 100644 --- a/modules/core/cs_topic.cpp +++ b/modules/core/cs_topic.cpp @@ -29,9 +29,9 @@ class CommandCSTopic : public Command Channel *c = ci->c; if (!c) - source.Reply(CHAN_X_NOT_IN_USE, ci->name.c_str()); + source.Reply(LanguageString::CHAN_X_NOT_IN_USE, ci->name.c_str()); else if (!check_access(u, ci, CA_TOPIC) && !u->Account()->HasCommand("chanserv/topic")) - source.Reply(ACCESS_DENIED); + source.Reply(LanguageString::ACCESS_DENIED); else { bool has_topiclock = ci->HasFlag(CI_TOPICLOCK); @@ -48,18 +48,27 @@ class CommandCSTopic : public Command bool OnHelp(CommandSource &source, const Anope::string &subcommand) { - source.Reply(CHAN_HELP_TOPIC); + source.Reply(_("Syntax: \002TOPIC \037channel\037 [\037topic\037]\002\n" + " \n" + "Causes %S to set the channel topic to the one\n" + "specified. If \002topic\002 is not given, then an empty topic\n" + "is set. This command is most useful in conjunction\n" + "with \002SET TOPICLOCK\002. See \002%R%S HELP SET TOPICLOCK\002\n" + "for more information.\n" + " \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, "TOPIC", CHAN_TOPIC_SYNTAX); + SyntaxError(source, "TOPIC", _("TOPIC \037channel\037 [\037topic\037]")); } void OnServHelp(CommandSource &source) { - source.Reply(CHAN_HELP_CMD_TOPIC); + source.Reply(_(" TOPIC Manipulate the topic of the specified channel")); } }; |