mirror of
https://github.com/anope/anope.git
synced 2026-06-30 10:56:38 +02:00
Added some access checks to cs_mode and fixed some language strings
This commit is contained in:
@@ -30,12 +30,12 @@ class CommandCSSetSecureOps : public Command
|
||||
if (params[1].equals_ci("ON"))
|
||||
{
|
||||
ci->SetFlag(CI_SECUREOPS);
|
||||
source.Reply(_("Secure ops option for %s is now \002\002."), ci->name.c_str());
|
||||
source.Reply(_("Secure ops option for %s is now \002on\002."), ci->name.c_str());
|
||||
}
|
||||
else if (params[1].equals_ci("OFF"))
|
||||
{
|
||||
ci->UnsetFlag(CI_SECUREOPS);
|
||||
source.Reply(_("Secure ops option for %s is now \002\002."), ci->name.c_str());
|
||||
source.Reply(_("Secure ops option for %s is now \002off\002."), ci->name.c_str());
|
||||
}
|
||||
else
|
||||
this->OnSyntaxError(source, "SECUREOPS");
|
||||
|
||||
Reference in New Issue
Block a user