From 780dda83ba3857bc3c330d4b5d38bb251a9d879b Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Sat, 14 Apr 2018 15:43:03 +0100 Subject: Add ConfigTag::getUInt for reading unsigned config values. --- 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 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(" 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(" must be a TLS port, at " + tag->getTagLocation()); -- cgit v1.2.3