aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules
diff options
context:
space:
mode:
authorGravatar Sadie Powell2023-04-20 08:26:06 +0100
committerGravatar Sadie Powell2023-04-20 08:26:06 +0100
commit1bbda87e477758da6f101fc97c567f0599204116 (patch)
tree1e75846c9a7f9318fc7acf06f96162e16af9a4d9 /src/modules
parentAllow 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.cpp2
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);