]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/socket.cpp
Fix not propagating rehashes properly across the network.
[user/henk/code/inspircd.git] / src / socket.cpp
index cdbc83e444825a7f8f98d377adc54913f339a0fc..d48a1907c9e37ae61ec5c5bc93f227c763365f5f 100644 (file)
@@ -354,7 +354,7 @@ irc::sockets::cidr_mask::cidr_mask(const std::string& mask)
        }
        else
        {
-               int range = ConvToInt(mask.substr(bits_chars + 1));
+               unsigned char range = ConvToNum<unsigned char>(mask.substr(bits_chars + 1));
                irc::sockets::aptosa(mask.substr(0, bits_chars), 0, sa);
                sa2cidr(*this, sa, range);
        }