diff options
| author | 2018-04-14 14:59:35 +0100 | |
|---|---|---|
| committer | 2018-04-16 15:24:49 +0100 | |
| commit | 2d36fcb16ef3209fffbe9f4b600971a1edd2ae4b (patch) | |
| tree | 4e8f371548bfbc844ad7db42b775db847b141636 /src/modules/m_ircv3_sts.cpp | |
| parent | Extract ConfigTag::getInt magnitude logic to a function template. (diff) | |
Convert ConfigTag::getDuration to return an unsigned long.
Diffstat (limited to 'src/modules/m_ircv3_sts.cpp')
| -rw-r--r-- | src/modules/m_ircv3_sts.cpp | 2 |
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); } |
