]> jfr.im git - irc/quakenet/newserv.git/commitdiff
isglinesane: Skip hostmask checks for nick glines.
authorGunnar Beutner <redacted>
Sat, 13 Jul 2013 09:47:47 +0000 (11:47 +0200)
committerGunnar Beutner <redacted>
Sat, 13 Jul 2013 09:47:47 +0000 (11:47 +0200)
--HG--
branch : shroudtrusts

glines/glines.c

index 7a2336c4f68cbcc71b593e523df529008479a029..857efcdf92894d6fd8dbdfd154a0eea38b3af97a 100644 (file)
@@ -273,6 +273,10 @@ int isglinesane(gline *gl, const char **hint) {
     return 0;
   }
 
+  /* Skip the other checks for nickname glines. */
+  if (gl->nick)
+    return 1;
+
   /* Mask wider than /16 for IPv4 or /32 for IPv6. */
   if ((gl->flags & GLINE_IPMASK) && gl->bits < (irc_in_addr_is_ipv4(&gl->ip) ? (96 + 16) : 32)) {
     *hint = "CIDR mask too wide.";