From 2d36fcb16ef3209fffbe9f4b600971a1edd2ae4b Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Sat, 14 Apr 2018 14:59:35 +0100 Subject: Convert ConfigTag::getDuration to return an unsigned long. --- src/modules/m_ircv3_sts.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/m_ircv3_sts.cpp') diff --git a/src/modules/m_ircv3_sts.cpp b/src/modules/m_ircv3_sts.cpp index f3b936b41..9dc36df60 100644 --- a/src/modules/m_ircv3_sts.cpp +++ b/src/modules/m_ircv3_sts.cpp @@ -167,7 +167,7 @@ class ModuleIRCv3STS : public Module if (!HasValidSSLPort(port)) throw ModuleException(" must be a TLS port, at " + tag->getTagLocation()); - unsigned long duration = tag->getDuration("duration", 60*60*24*30*2, 0, LONG_MAX); + unsigned long duration = tag->getDuration("duration", 60*60*24*30*2); bool preload = tag->getBool("preload"); cap.SetPolicy(host, duration, port, preload); } -- cgit v1.3.1-10-gc9f91