From 7ef2f87e39bd22c7914caf7f2afbb1a3bf8fbd43 Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Sat, 14 Apr 2018 16:53:03 +0100 Subject: Remove the default value in ConfigTag::get{Duration,Float,Int}. --- src/configreader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/configreader.cpp') 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")); -- cgit v1.3.1-10-gc9f91