From e7c829af5941c6a8a303ca75ed9ac47570347e41 Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Sun, 13 Aug 2017 16:26:48 +0100 Subject: Convert a bunch of time-related config options to getDuration. --- src/modules/m_repeat.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/m_repeat.cpp') 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 > 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) -- cgit v1.3.1-10-gc9f91