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/extra | |
| parent | 773a1f3075fa12700d41598c0b8a8dd7caf9011e (diff) | |
Added a command:permission setting
Diffstat (limited to 'modules/extra')
| -rw-r--r-- | modules/extra/cs_set_misc.cpp | 4 | ||||
| -rw-r--r-- | modules/extra/hs_request.cpp | 6 | ||||
| -rw-r--r-- | modules/extra/m_async_commands.cpp | 2 | ||||
| -rw-r--r-- | modules/extra/ns_set_misc.cpp | 4 | ||||
| -rw-r--r-- | modules/extra/os_defcon.cpp | 2 |
5 files changed, 9 insertions, 9 deletions
diff --git a/modules/extra/cs_set_misc.cpp b/modules/extra/cs_set_misc.cpp index fc9ae9cf6..8f145ab88 100644 --- a/modules/extra/cs_set_misc.cpp +++ b/modules/extra/cs_set_misc.cpp @@ -15,7 +15,7 @@ class CommandCSSetMisc : public Command { public: - CommandCSSetMisc(Module *creator, const Anope::string &cname = "chanserv/set/misc", const Anope::string &cpermission = "") : Command(creator, cname, 1, 2, cpermission) + CommandCSSetMisc(Module *creator, const Anope::string &cname = "chanserv/set/misc") : Command(creator, cname, 1, 2) { this->SetSyntax(_("\037channel\037 \037parameters\037")); } @@ -43,7 +43,7 @@ class CommandCSSetMisc : public Command class CommandCSSASetMisc : public CommandCSSetMisc { public: - CommandCSSASetMisc(Module *creator) : CommandCSSetMisc(creator, "chanserv/saset/misc", "chanserv/saset/misc") + CommandCSSASetMisc(Module *creator) : CommandCSSetMisc(creator, "chanserv/saset/misc") { } }; diff --git a/modules/extra/hs_request.cpp b/modules/extra/hs_request.cpp index f846b6167..7686794f5 100644 --- a/modules/extra/hs_request.cpp +++ b/modules/extra/hs_request.cpp @@ -134,7 +134,7 @@ class CommandHSRequest : public Command class CommandHSActivate : public Command { public: - CommandHSActivate(Module *creator) : Command(creator, "hostserv/activate", 1, 1, "hostserv/set") + CommandHSActivate(Module *creator) : Command(creator, "hostserv/activate", 1, 1) { this->SetDesc(_("Approve the requested vHost of a user")); this->SetSyntax(_("\037nick\037")); @@ -187,7 +187,7 @@ class CommandHSActivate : public Command class CommandHSReject : public Command { public: - CommandHSReject(Module *creator) : Command(creator, "hostserv/reject", 1, 2, "hostserv/set") + CommandHSReject(Module *creator) : Command(creator, "hostserv/reject", 1, 2) { this->SetDesc(_("Reject the requested vHost of a user")); } @@ -264,7 +264,7 @@ class HSListBase : public Command return; } public: - HSListBase(Module *creator, const Anope::string &cmd, int min, int max) : Command(creator, cmd, min, max, "hostserv/set") + HSListBase(Module *creator, const Anope::string &cmd, int min, int max) : Command(creator, cmd, min, max) { } }; diff --git a/modules/extra/m_async_commands.cpp b/modules/extra/m_async_commands.cpp index 84d7a4f41..814c86c92 100644 --- a/modules/extra/m_async_commands.cpp +++ b/modules/extra/m_async_commands.cpp @@ -46,7 +46,7 @@ class AsynchCommandMutex : public CommandMutex return; } - if (!command->permission.empty() && !u->HasCommand(command->permission)) + if (!this->source.permission.empty() && !u->HasCommand(this->source.permission)) { u->SendMessage(bi, ACCESS_DENIED); Log(LOG_COMMAND, "denied", bi) << "Access denied for user " << u->GetMask() << " with command " << command; diff --git a/modules/extra/ns_set_misc.cpp b/modules/extra/ns_set_misc.cpp index 47506ce89..f0ee269cc 100644 --- a/modules/extra/ns_set_misc.cpp +++ b/modules/extra/ns_set_misc.cpp @@ -16,7 +16,7 @@ class CommandNSSetMisc : public Command { public: - CommandNSSetMisc(Module *creator, const Anope::string &cname = "nickserv/set/misc", const Anope::string &cpermission = "", size_t min = 1) : Command(creator, cname, min, min + 1, cpermission) + CommandNSSetMisc(Module *creator, const Anope::string &cname = "nickserv/set/misc", size_t min = 1) : Command(creator, cname, min, min + 1) { this->SetSyntax(_("\037parameter\037")); } @@ -52,7 +52,7 @@ class CommandNSSetMisc : public Command class CommandNSSASetMisc : public CommandNSSetMisc { public: - CommandNSSASetMisc(Module *creator) : CommandNSSetMisc(creator, "nickserv/saset/misc", "nickserv/saset/misc", 2) + CommandNSSASetMisc(Module *creator) : CommandNSSetMisc(creator, "nickserv/saset/misc", 2) { this->ClearSyntax(); this->SetSyntax(_("\037nickname\037 \037parameter\037")); diff --git a/modules/extra/os_defcon.cpp b/modules/extra/os_defcon.cpp index 26120feff..ea513e1dc 100644 --- a/modules/extra/os_defcon.cpp +++ b/modules/extra/os_defcon.cpp @@ -163,7 +163,7 @@ class CommandOSDefcon : public Command } public: - CommandOSDefcon(Module *creator) : Command(creator, "operserv/defcon", 1, 1, "operserv/defcon") + CommandOSDefcon(Module *creator) : Command(creator, "operserv/defcon", 1, 1) { this->SetDesc(_("Manipulate the DefCon system")); this->SetSyntax(_("[\0021\002|\0022\002|\0023\002|\0024\002|\0025\002]")); |
