summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--data/example.conf1
-rw-r--r--modules/commands/os_config.cpp6
2 files changed, 7 insertions, 0 deletions
diff --git a/data/example.conf b/data/example.conf
index 0817ba4e7..948700e8b 100644
--- a/data/example.conf
+++ b/data/example.conf
@@ -767,6 +767,7 @@ log
* nickserv/auspex - Can see any information with /nickserv info
* nickserv/confirm - Can confirm other users nicknames
* nickserv/drop - Can drop other users nicks
+ * operserv/config - Can modify services's configuration
*
* Available commands:
* botserv/bot/del botserv/bot/add botserv/bot/change botserv/set/private
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]);