diff options
author | Peter Powell <petpow@saberuk.com> | 2018-04-14 15:43:03 +0100 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2018-04-16 15:29:55 +0100 |
commit | 780dda83ba3857bc3c330d4b5d38bb251a9d879b (patch) | |
tree | 75034915142a3e1362f0f9d59c8e96e1eec22931 /src/modules/m_ircv3_sts.cpp | |
parent | 2d36fcb16ef3209fffbe9f4b600971a1edd2ae4b (diff) |
Add ConfigTag::getUInt for reading unsigned config values.
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 9dc36df60..c78b79b46 100644 --- a/src/modules/m_ircv3_sts.cpp +++ b/src/modules/m_ircv3_sts.cpp @@ -163,7 +163,7 @@ class ModuleIRCv3STS : public Module if (host.empty()) throw ModuleException("<sts:host> must contain a hostname, at " + tag->getTagLocation()); - unsigned int port = tag->getInt("port", 0, 0, UINT16_MAX); + unsigned int port = tag->getUInt("port", 0, 0, UINT16_MAX); if (!HasValidSSLPort(port)) throw ModuleException("<sts:port> must be a TLS port, at " + tag->getTagLocation()); |