]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_ircv3_sts.cpp
Fix a bunch more conflicting/unnamed numerics.
[user/henk/code/inspircd.git] / src / modules / m_ircv3_sts.cpp
index 9dc36df606cdda65228bd64fffb3124a9179b94e..cbfdd1307dc7c0f4251bb52314abfd38389d50b6 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());
 
@@ -174,7 +174,7 @@ class ModuleIRCv3STS : public Module
 
        Version GetVersion() CXX11_OVERRIDE
        {
-               return Version("Provides IRCv3 Strict Transport Security policy advertisement", VF_OPTCOMMON);
+               return Version("Provides IRCv3 Strict Transport Security policy advertisement", VF_OPTCOMMON|VF_VENDOR);
        }
 };