diff options
| author | 2023-01-23 00:08:26 +0000 | |
|---|---|---|
| committer | 2023-01-23 01:01:06 +0000 | |
| commit | b5404f841552f756f6a319c5957c32ffbd3d52b9 (patch) | |
| tree | 214f804df03d7ea7994ca7ce52764f3741c61ba4 /src/configparser.cpp | |
| parent | Move NotifyRawIO to the Log namespace. (diff) | |
Move duration functions to their own header.
Diffstat (limited to 'src/configparser.cpp')
| -rw-r--r-- | src/configparser.cpp | 3 |
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; |
