Cosmetic changes to banning bare IPv6 addresses and kicking +D-hidden users.
[ircu2.10.12-pk.git] / ircd / channel.c
index 7a9990266e5413c9b737daf7dca377bf6ac5ad9e..fcbf7070b401b9d3dc066fd1ce2a2465f1f6f684 100644 (file)
@@ -1109,9 +1109,10 @@ char *pretty_mask(char *mask)
       user = mask;
       host = ++ptr;
     }
-    else if (*ptr == '.')
+    else if (*ptr == '.' || *ptr == ':')
     {
-      /* Case 2: Found last '.' (without finding a '!' or '@' yet) */
+      /* Case 2: Found character specific to IP or hostname (without
+       * finding a '!' or '@' yet) */
       last_dot = ptr;
       continue;
     }