diff options
| author | 2023-04-20 08:26:06 +0100 | |
|---|---|---|
| committer | 2023-04-20 08:26:06 +0100 | |
| commit | 1bbda87e477758da6f101fc97c567f0599204116 (patch) | |
| tree | 1e75846c9a7f9318fc7acf06f96162e16af9a4d9 /src/modules | |
| parent | Allow customising the message shown when hiding an X-line ban. (diff) | |
Fix parsing <chanhistory:maxduration>.
Closes #2032.
Diffstat (limited to 'src/modules')
| -rw-r--r-- | src/modules/m_chanhistory.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_chanhistory.cpp b/src/modules/m_chanhistory.cpp index 26fb5e474..6c3d37902 100644 --- a/src/modules/m_chanhistory.cpp +++ b/src/modules/m_chanhistory.cpp @@ -230,7 +230,7 @@ public: void ReadConfig(ConfigStatus& status) override { const auto& tag = ServerInstance->Config->ConfValue("chanhistory"); - historymode.maxduration = tag->getNum<unsigned long>("maxduration", 60*60*24*28, 1); + historymode.maxduration = tag->getDuration("maxduration", 60*60*24*28, 1); historymode.maxlines = tag->getNum<unsigned long>("maxlines", 50, 1); prefixmsg = tag->getBool("prefixmsg", true); dobots = tag->getBool("bots", true); |
