]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_ircv3_sts.cpp
Allow configuring whether SETNAME sends snotices and is oper-only.
[user/henk/code/inspircd.git] / src / modules / m_ircv3_sts.cpp
index 9dc36df606cdda65228bd64fffb3124a9179b94e..a8738b2ac0d718d0d2774bf423840c34b685053d 100644 (file)
@@ -130,7 +130,7 @@ class ModuleIRCv3STS : public Module
                for (std::vector<ListenSocket*>::const_iterator iter = ServerInstance->ports.begin(); iter != ServerInstance->ports.end(); ++iter)
                {
                        ListenSocket* ls = *iter;
-                       
+
                        // Is this listener on the right port?
                        unsigned int saport = ls->bind_sa.port();
                        if (saport != port)
@@ -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);
        }
 };