diff options
| author | 2017-08-13 16:26:48 +0100 | |
|---|---|---|
| committer | 2017-09-03 20:20:30 +0100 | |
| commit | e7c829af5941c6a8a303ca75ed9ac47570347e41 (patch) | |
| tree | a40aa5b57346eb0b83e6f6b2cef1df36732800e5 /src/modules/m_repeat.cpp | |
| parent | Move <dns:timeout> out of the core. (diff) | |
Convert a bunch of time-related config options to getDuration.
Diffstat (limited to 'src/modules/m_repeat.cpp')
| -rw-r--r-- | src/modules/m_repeat.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_repeat.cpp b/src/modules/m_repeat.cpp index 9715fcf6f..6c34648e0 100644 --- a/src/modules/m_repeat.cpp +++ b/src/modules/m_repeat.cpp @@ -233,7 +233,7 @@ class RepeatMode : public ParamMode<RepeatMode, SimpleExtItem<ChannelSettings> > ConfigTag* conf = ServerInstance->Config->ConfValue("repeat"); ms.MaxLines = conf->getInt("maxlines", 20); ms.MaxBacklog = conf->getInt("maxbacklog", 20); - ms.MaxSecs = conf->getInt("maxsecs", 0); + ms.MaxSecs = conf->getDuration("maxtime", conf->getInt("maxsecs", 0)); ms.MaxDiff = conf->getInt("maxdistance", 50); if (ms.MaxDiff > 100) |
