diff options
author | Adam <Adam@anope.org> | 2011-08-04 21:59:01 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2011-08-04 21:59:01 -0400 |
commit | 9ec18a3b020932eee6242c878149c484f49b13cb (patch) | |
tree | 6f0470e27bf4f3ced0f6833db00134f4b29a79a9 /modules/core/cs_set_secureops.cpp | |
parent | 773a1f3075fa12700d41598c0b8a8dd7caf9011e (diff) |
Added a command:permission setting
Diffstat (limited to 'modules/core/cs_set_secureops.cpp')
-rw-r--r-- | modules/core/cs_set_secureops.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/core/cs_set_secureops.cpp b/modules/core/cs_set_secureops.cpp index ed15f7cb5..4c3c54b05 100644 --- a/modules/core/cs_set_secureops.cpp +++ b/modules/core/cs_set_secureops.cpp @@ -16,7 +16,7 @@ class CommandCSSetSecureOps : public Command { public: - CommandCSSetSecureOps(Module *creator, const Anope::string &cname = "chanserv/set/secureops", const Anope::string &cpermission = "") : Command(creator, cname, 2, 2, cpermission) + CommandCSSetSecureOps(Module *creator, const Anope::string &cname = "chanserv/set/secureops") : Command(creator, cname, 2, 2) { this->SetDesc(_("Stricter control of chanop status")); this->SetSyntax(_("\037channel\037 {ON | OFF}")); @@ -32,7 +32,7 @@ class CommandCSSetSecureOps : public Command return; } - if (!this->permission.empty() && !ci->HasPriv(u, CA_SET)) + if (source.permission.empty() && !ci->HasPriv(u, CA_SET)) { source.Reply(ACCESS_DENIED); return; @@ -68,7 +68,7 @@ class CommandCSSetSecureOps : public Command class CommandCSSASetSecureOps : public CommandCSSetSecureOps { public: - CommandCSSASetSecureOps(Module *creator) : CommandCSSetSecureOps(creator, "chanserv/saset/secureops", "chanserv/saset/secureops") + CommandCSSASetSecureOps(Module *creator) : CommandCSSetSecureOps(creator, "chanserv/saset/secureops") { } }; |