diff options
| author | 2018-04-14 16:53:03 +0100 | |
|---|---|---|
| committer | 2018-04-16 15:07:06 +0100 | |
| commit | 7ef2f87e39bd22c7914caf7f2afbb1a3bf8fbd43 (patch) | |
| tree | 29c9efd1c7f1f2e3c9e8d058068c28d5b66c40e0 /src/modules/m_connflood.cpp | |
| parent | Use an oper priv instead of a config flag for overriding nonicks. (diff) | |
Remove the default value in ConfigTag::get{Duration,Float,Int}.
Diffstat (limited to 'src/modules/m_connflood.cpp')
| -rw-r--r-- | src/modules/m_connflood.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/m_connflood.cpp b/src/modules/m_connflood.cpp index 1d27e3990..29d4d9d3a 100644 --- a/src/modules/m_connflood.cpp +++ b/src/modules/m_connflood.cpp @@ -46,13 +46,13 @@ public: /* read configuration variables */ ConfigTag* tag = ServerInstance->Config->ConfValue("connflood"); /* throttle configuration */ - seconds = tag->getDuration("period", tag->getInt("seconds")); - maxconns = tag->getInt("maxconns"); - timeout = tag->getDuration("timeout"); + seconds = tag->getDuration("period", tag->getInt("seconds", 30)); + maxconns = tag->getInt("maxconns", 3); + timeout = tag->getDuration("timeout", 30); quitmsg = tag->getString("quitmsg"); /* seconds to wait when the server just booted */ - boot_wait = tag->getInt("bootwait"); + boot_wait = tag->getInt("bootwait", 10); first = ServerInstance->Time(); } |
