From 20b632f35118a043a8100f4faf6372c516326376 Mon Sep 17 00:00:00 2001 From: Michael Poole Date: Thu, 5 Apr 2007 01:39:39 +0000 Subject: [PATCH] Fix on-connect host hiding for users with IAuth account stamps. git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/branches/u2_10_12_branch@1797 c9e4aea6-c8fd-4c43-8297-357d70d61c8c --- ChangeLog | 5 +++++ ircd/s_user.c | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/ChangeLog b/ChangeLog index 6301e78..d880af0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-04-01 J. R. Lenz + + * ircd/s_user.c (register_user): Check for host-hiding when fully + registering a user. [Comment added by Entrope.] + 2007-03-31 Michael Poole * doc/readme.iauth (IAuth M): Document new command. diff --git a/ircd/s_user.c b/ircd/s_user.c index 407bb3c..fb08e0b 100644 --- a/ircd/s_user.c +++ b/ircd/s_user.c @@ -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. */ -- 2.20.1