aboutsummaryrefslogtreecommitdiffstats
path: root/src/configparser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/configparser.cpp')
-rw-r--r--src/configparser.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/configparser.cpp b/src/configparser.cpp
index 611aa8aeb..fb70a2513 100644
--- a/src/configparser.cpp
+++ b/src/configparser.cpp
@@ -27,6 +27,7 @@
#include "inspircd.h"
#include "configparser.h"
+#include "duration.h"
#ifdef _WIN32
# define pclose _pclose
@@ -699,7 +700,7 @@ unsigned long ConfigTag::getDuration(const std::string& key, unsigned long def,
return def;
unsigned long ret;
- if (!InspIRCd::Duration(duration, ret))
+ if (!Duration::TryFrom(duration, ret))
{
LogMalformed(key, duration, ConvToStr(def), "is not a duration");
return def;