Fix on-connect host hiding for users with IAuth account stamps.
authorMichael Poole <mdpoole@troilus.org>
Thu, 5 Apr 2007 01:39:39 +0000 (01:39 +0000)
committerMichael Poole <mdpoole@troilus.org>
Thu, 5 Apr 2007 01:39:39 +0000 (01:39 +0000)
git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/branches/u2_10_12_branch@1797 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

ChangeLog
ircd/s_user.c

index 6301e785d8b4598a824ddd3be457dc4af97ae7cc..d880af0c6a981d86509dead0c103ff26361f11c9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-04-01  J. R. Lenz <ralf@starshadow.com>
+
+       * ircd/s_user.c (register_user): Check for host-hiding when fully
+       registering a user.  [Comment added by Entrope.]
+
 2007-03-31  Michael Poole <mdpoole@troilus.org>
 
        * doc/readme.iauth (IAuth M): Document new command.
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. */