]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_dnsbl.cpp
Send the ACCEPT and KEYLEN ISUPPORT tokens.
[user/henk/code/inspircd.git] / src / modules / m_dnsbl.cpp
index b2b9c30ffd165d6fb19a9672a40c60d142915a1f..732717ff3dc08ea7704f956f41a0e7961c45d94f 100644 (file)
@@ -35,7 +35,7 @@ class DNSBLConfEntry : public refcountbase
                EnumBanaction banaction;
                EnumType type;
                long duration;
-               int bitmask;
+               unsigned int bitmask;
                unsigned char records[256];
                unsigned long stats_hits, stats_misses;
                DNSBLConfEntry(): type(A_BITMASK),duration(86400),bitmask(0),stats_hits(0), stats_misses(0) {}
@@ -279,7 +279,7 @@ class ModuleDNSBL : public Module
                        if (tag->getString("type") == "bitmask")
                        {
                                e->type = DNSBLConfEntry::A_BITMASK;
-                               e->bitmask = tag->getInt("bitmask");
+                               e->bitmask = tag->getInt("bitmask", 0, 0, UINT_MAX);
                        }
                        else
                        {