Fix on-connect host hiding for users with IAuth account stamps.
[ircu2.10.12-pk.git] / ircd / s_user.c
index 407bb3ce27d3c2fbb67152d6c53bfe8580233c68..fb08e0bcc8fb7307c5161ebe10f5820fd3786223 100644 (file)
@@ -456,6 +456,12 @@ int register_user(struct Client *cptr, struct Client *sptr)
     ++UserStats.inv_clients;
   if (IsOper(sptr))
     ++UserStats.opers;
+  /* If they get both +x and an account during registration, hide
+   * their hostmask here.  Calling hide_hostmask() from IAuth's
+   * account assignment causes a numeric reply during registration.
+   */
+  if (HasHiddenHost(sptr))
+    hide_hostmask(sptr, FLAG_HIDDENHOST);
 
   tmpstr = umode_str(sptr);
   /* Send full IP address to IPv6-grokking servers. */