summaryrefslogtreecommitdiff
path: root/modules/core/cs_set_secure.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_secure.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_secure.cpp')
-rw-r--r--modules/core/cs_set_secure.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/modules/core/cs_set_secure.cpp b/modules/core/cs_set_secure.cpp
index 118214c29..a84e91958 100644
--- a/modules/core/cs_set_secure.cpp
+++ b/modules/core/cs_set_secure.cpp
@@ -29,12 +29,12 @@ class CommandCSSetSecure : public Command
if (params[1].equals_ci("ON"))
{
ci->SetFlag(CI_SECURE);
- source.Reply(CHAN_SET_SECURE_ON, ci->name.c_str());
+ source.Reply(_("Secure option for %s is now \002\002."), ci->name.c_str());
}
else if (params[1].equals_ci("OFF"))
{
ci->UnsetFlag(CI_SECURE);
- source.Reply(CHAN_SET_SECURE_OFF, ci->name.c_str());
+ source.Reply(_("Secure option for %s is now \002\002."), ci->name.c_str());
}
else
this->OnSyntaxError(source, "SECURE");
@@ -44,18 +44,24 @@ class CommandCSSetSecure : public Command
bool OnHelp(CommandSource &source, const Anope::string &)
{
- source.Reply(CHAN_HELP_SET_SECURE, "SET", Config->s_NickServ.c_str());
+ source.Reply(_("Syntax: \002%s \037channel\037 SECURE {ON | OFF}\002\n"
+ " \n"
+ "Enables or disables %S's security features for a\n"
+ "channel. When \002SECURE\002 is set, only users who have\n"
+ "registered their nicknames with %s and IDENTIFY'd\n"
+ "with their password will be given access to the channel\n"
+ "as controlled by the access list."), this->name.c_str(), Config->s_NickServ.c_str());
return true;
}
void OnSyntaxError(CommandSource &source, const Anope::string &)
{
- SyntaxError(source, "SET SECURE", CHAN_SET_SECURE_SYNTAX);
+ SyntaxError(source, "SET SECURE", _("SET \037channel\037 SECURE {ON | OFF}"));
}
void OnServHelp(CommandSource &source)
{
- source.Reply(CHAN_HELP_CMD_SET_SECURE);
+ source.Reply(_(" SECURE Activate %S security features"));
}
};
@@ -66,15 +72,9 @@ class CommandCSSASetSecure : public CommandCSSetSecure
{
}
- bool OnHelp(CommandSource &source, const Anope::string &)
- {
- source.Reply(CHAN_HELP_SET_SECURE, "SASET", Config->s_NickServ.c_str());
- return true;
- }
-
void OnSyntaxError(CommandSource &source, const Anope::string &)
{
- SyntaxError(source, "SASET SECURE", CHAN_SASET_SECURE_SYNTAX);
+ SyntaxError(source, "SASET SECURE", _("SASET \002channel\002 SECURE {ON | OFF}"));
}
};