From 1bbda87e477758da6f101fc97c567f0599204116 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Thu, 20 Apr 2023 08:26:06 +0100 Subject: Fix parsing . Closes #2032. --- src/modules/m_chanhistory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules') 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("maxduration", 60*60*24*28, 1); + historymode.maxduration = tag->getDuration("maxduration", 60*60*24*28, 1); historymode.maxlines = tag->getNum("maxlines", 50, 1); prefixmsg = tag->getBool("prefixmsg", true); dobots = tag->getBool("bots", true); -- cgit v1.3.1-10-gc9f91