diff options
author | Peter Powell <petpow@saberuk.com> | 2017-08-13 16:26:48 +0100 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2017-09-03 20:20:30 +0100 |
commit | e7c829af5941c6a8a303ca75ed9ac47570347e41 (patch) | |
tree | a40aa5b57346eb0b83e6f6b2cef1df36732800e5 /src/modules/m_connflood.cpp | |
parent | 74dd288542e28f3604306cc69468f88b14c1b3c5 (diff) |
Convert a bunch of time-related config options to getDuration.
Diffstat (limited to 'src/modules/m_connflood.cpp')
-rw-r--r-- | src/modules/m_connflood.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_connflood.cpp b/src/modules/m_connflood.cpp index 2ab906e27..1d27e3990 100644 --- a/src/modules/m_connflood.cpp +++ b/src/modules/m_connflood.cpp @@ -46,9 +46,9 @@ public: /* read configuration variables */ ConfigTag* tag = ServerInstance->Config->ConfValue("connflood"); /* throttle configuration */ - seconds = tag->getInt("seconds"); + seconds = tag->getDuration("period", tag->getInt("seconds")); maxconns = tag->getInt("maxconns"); - timeout = tag->getInt("timeout"); + timeout = tag->getDuration("timeout"); quitmsg = tag->getString("quitmsg"); /* seconds to wait when the server just booted */ |