]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_ircv3_sts.cpp
Add ConfigTag::getUInt for reading unsigned config values.
[user/henk/code/inspircd.git] / src / modules / m_ircv3_sts.cpp
index 9dc36df606cdda65228bd64fffb3124a9179b94e..c78b79b46952c9be064e68f89a3164d0d337a668 100644 (file)
@@ -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());