summaryrefslogtreecommitdiff
path: root/src/config.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2010-07-10 22:50:18 -0400
committerAdam <Adam@anope.org>2010-07-10 22:50:18 -0400
commit63d71424650ac697f2e698c1c8fd242729691a0f (patch)
tree9c55ed88e580056540f9c728590a50cca7b39404 /src/config.cpp
parenta49521302628982f62ddadd997a81734f4d8c84f (diff)
Added options:hideprivilegedcommands config option to hide privileged commands from normal users
Diffstat (limited to 'src/config.cpp')
-rw-r--r--src/config.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/config.cpp b/src/config.cpp
index 5785c4452..61f9d586f 100644
--- a/src/config.cpp
+++ b/src/config.cpp
@@ -664,6 +664,7 @@ int ServerConfig::Read(bool bail)
{"options", "botmodes", "", new ValueContainerCIString(&Config.BotModes), DT_CISTRING, NoValidation},
{"options", "maxretries", "10", new ValueContainerUInt(&Config.MaxRetries), DT_UINTEGER, NoValidation},
{"options", "retrywait", "60", new ValueContainerInt(&Config.RetryWait), DT_INTEGER, ValidateNotZero},
+ {"options", "hideprivilegedcommands", "no", new ValueContainerBool(&Config.HidePrivilegedCommands), DT_BOOLEAN, ValidateEmailReg},
{"nickserv", "nick", "NickServ", new ValueContainerChar(&Config.s_NickServ), DT_CHARPTR | DT_NORELOAD, ValidateNotEmpty},
{"nickserv", "description", "Nickname Registration Service", new ValueContainerChar(&Config.desc_NickServ), DT_CHARPTR | DT_NORELOAD, ValidateNotEmpty},
{"nickserv", "emailregistration", "no", new ValueContainerBool(&Config.NSEmailReg), DT_BOOLEAN, NoValidation},