summaryrefslogtreecommitdiff
path: root/modules/core/cs_set_description.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_set_description.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_set_description.cpp')
-rw-r--r--modules/core/cs_set_description.cpp19
1 files changed, 8 insertions, 11 deletions
diff --git a/modules/core/cs_set_description.cpp b/modules/core/cs_set_description.cpp
index a36b1150f..aee4144d9 100644
--- a/modules/core/cs_set_description.cpp
+++ b/modules/core/cs_set_description.cpp
@@ -28,26 +28,29 @@ class CommandCSSetDescription : public Command
ci->desc = params[1];
- source.Reply(CHAN_DESC_CHANGED, ci->name.c_str(), ci->desc.c_str());
+ source.Reply(_("Description of %s changed to \002%s\002."), ci->name.c_str(), ci->desc.c_str());
return MOD_CONT;
}
bool OnHelp(CommandSource &source, const Anope::string &)
{
- source.Reply(CHAN_HELP_SET_DESC, "SET");
+ source.Reply(_("Syntax: \002%s \037channel\037 DESC \037description\037\002\n"
+ " \n"
+ "Sets the description for the channel, which shows up with\n"
+ "the \002LIST\002 and \002INFO\002 commands."), this->name.c_str());
return true;
}
void OnSyntaxError(CommandSource &source, const Anope::string &)
{
// XXX
- SyntaxError(source, "SET", CHAN_SET_SYNTAX);
+ SyntaxError(source, "SET", LanguageString::CHAN_SET_SYNTAX);
}
void OnServHelp(CommandSource &source)
{
- source.Reply(CHAN_HELP_CMD_SET_DESC);
+ source.Reply(_(" DESC Set the channel description"));
}
};
@@ -58,16 +61,10 @@ class CommandCSSASetDescription : public CommandCSSetDescription
{
}
- bool OnHelp(CommandSource &source, const Anope::string &)
- {
- source.Reply(CHAN_HELP_SET_DESC, "SASET");
- return true;
- }
-
void OnSyntaxError(CommandSource &source, const Anope::string &)
{
// XXX
- SyntaxError(source, "SASET", CHAN_SASET_SYNTAX);
+ SyntaxError(source, "SASET", LanguageString::CHAN_SASET_SYNTAX);
}
};