summaryrefslogtreecommitdiff
path: root/src/listmode.cpp
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2018-04-14 16:53:03 +0100
committerPeter Powell <petpow@saberuk.com>2018-04-16 15:07:06 +0100
commit7ef2f87e39bd22c7914caf7f2afbb1a3bf8fbd43 (patch)
tree29c9efd1c7f1f2e3c9e8d058068c28d5b66c40e0 /src/listmode.cpp
parentdec17a2e32573a32751c975b5b55217442cd3185 (diff)
Remove the default value in ConfigTag::get{Duration,Float,Int}.
Diffstat (limited to 'src/listmode.cpp')
-rw-r--r--src/listmode.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/listmode.cpp b/src/listmode.cpp
index a8f6e5108..d106bfa1d 100644
--- a/src/listmode.cpp
+++ b/src/listmode.cpp
@@ -69,7 +69,7 @@ void ListModeBase::DoRehash()
{
// For each <banlist> tag
ConfigTag* c = i->second;
- ListLimit limit(c->getString("chan"), c->getInt("limit"));
+ ListLimit limit(c->getString("chan"), c->getInt("limit", 0));
if (limit.mask.size() && limit.limit > 0)
chanlimits.push_back(limit);