+
+ /* Damn you IPv6...
+ * We count the number of colons so we can calculate how much
+ * of the host to cloak. This is because some hostmasks may not
+ * have as many octets as we'd like.
+ *
+ * We have to do this ahead of time because doing this during
+ * the actual cloaking would get ugly
+ */
+ for (tptr = outbuf; *tptr != '\0'; tptr++)
+ if (*tptr == ':')
+ totalcount++;