Fix IPv4-based /who and update "ircd -?" usage text.
[ircu2.10.12-pk.git] / ircd / numnicks.c
index 47b3fec59e2088fc865432ebb0e2695cb591c153..bf11b7e1df73e953d84ad75256d64c79c297d7d2 100644 (file)
@@ -502,6 +502,7 @@ void base64toip(const char* input, struct irc_in_addr* addr)
   memset(addr, 0, sizeof(*addr));
   if (strlen(input) == 6) {
     unsigned int in = base64toint(input);
+    addr->in6_16[5] = htons(65535);
     addr->in6_16[6] = htons(in >> 16);
     addr->in6_16[7] = htons(in & 65535);
   } else {