summaryrefslogtreecommitdiff
path: root/src/configreader.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/configreader.cpp')
-rw-r--r--src/configreader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/configreader.cpp b/src/configreader.cpp
index 58a932981..76bd268f2 100644
--- a/src/configreader.cpp
+++ b/src/configreader.cpp
@@ -443,7 +443,7 @@ void ServerConfig::Fill()
DefaultModes = options->getString("defaultmodes", "not");
PID = ConfValue("pid")->getString("file");
MaxChans = ConfValue("channels")->getInt("users", 20);
- OperMaxChans = ConfValue("channels")->getInt("opers");
+ OperMaxChans = ConfValue("channels")->getInt("opers", 0);
c_ipv4_range = ConfValue("cidr")->getInt("ipv4clone", 32, 1, 32);
c_ipv6_range = ConfValue("cidr")->getInt("ipv6clone", 128, 1, 128);
Limits = ServerLimits(ConfValue("limits"));