summaryrefslogtreecommitdiff
path: root/src/modules/m_ircv3_sts.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_ircv3_sts.cpp')
-rw-r--r--src/modules/m_ircv3_sts.cpp2
1 files changed, 1 insertions, 1 deletions
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("<sts:port> 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);
}