]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_ircv3_sts.cpp
Fix a ton of -Wsign-conversion warnings.
[user/henk/code/inspircd.git] / src / modules / m_ircv3_sts.cpp
index ee619903aa758c02d47bf9f0cc438a4a34f27165..f3b936b4189e43e29cfca5de19ed39c2449d0981 100644 (file)
@@ -163,7 +163,7 @@ class ModuleIRCv3STS : public Module
                if (host.empty())
                        throw ModuleException("<sts:host> must contain a hostname, at " + tag->getTagLocation());
 
-               int port = tag->getInt("port");
+               unsigned int port = tag->getInt("port", 0, 0, UINT16_MAX);
                if (!HasValidSSLPort(port))
                        throw ModuleException("<sts:port> must be a TLS port, at " + tag->getTagLocation());