summaryrefslogtreecommitdiff
path: root/modules/commands/os_config.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2014-01-02 11:44:18 -0500
committerAdam <Adam@anope.org>2014-01-02 11:44:18 -0500
commit2781b6946daa82b88b08cdd6ab3c6478f7c70aa1 (patch)
treefc612000d1b6dc46c15ef8b3ceb8fec72db28b3a /modules/commands/os_config.cpp
parent1e502c845085ca140fb38745bd9f13643dff16f5 (diff)
Add an explicit privilege for os_config's modify
Diffstat (limited to 'modules/commands/os_config.cpp')
-rw-r--r--modules/commands/os_config.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/commands/os_config.cpp b/modules/commands/os_config.cpp
index 6dc932cf2..b286a3238 100644
--- a/modules/commands/os_config.cpp
+++ b/modules/commands/os_config.cpp
@@ -26,6 +26,12 @@ class CommandOSConfig : public Command
if (what.equals_ci("MODIFY") && params.size() > 3)
{
+ if (!source.HasPriv("operserv/config"))
+ {
+ source.Reply(ACCESS_DENIED);
+ return;
+ }
+
Configuration::Block *block = Config->GetBlock(params[1]);
if (!block)
block = Config->GetModule(params[1]);