From 858f93e84226260e096d4dac158d4eb13a52665b Mon Sep 17 00:00:00 2001 From: Michael Poole Date: Mon, 6 Jul 2009 02:36:29 +0000 Subject: [PATCH] Fix SourceForge bug #2816618 (default user modes in connection class do not work). git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/branches/u2_10_12_branch@1918 c9e4aea6-c8fd-4c43-8297-357d70d61c8c --- ChangeLog | 6 ++++++ ircd/s_user.c | 7 +------ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index f119950..06a1d69 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2009-07-05 Michael Poole + + * ircd/s_user.c (register_user): Use correct parc for + set_user_mode(). Do not increment UserStats fields here, because + set_user_mode() handles that. + 2009-07-05 Michael Poole * ircd/m_gline.c (ms_gline): Fix the sense of the test for diff --git a/ircd/s_user.c b/ircd/s_user.c index a989a06..97d3517 100644 --- a/ircd/s_user.c +++ b/ircd/s_user.c @@ -392,9 +392,8 @@ int register_user(struct Client *cptr, struct Client *sptr) if (tmpstr) { char *umodev[] = { NULL, NULL, NULL, NULL }; umodev[2] = tmpstr; - set_user_mode(cptr, sptr, 1, umodev, ALLOWMODES_ANY); + set_user_mode(cptr, sptr, 3, umodev, ALLOWMODES_ANY); } - } else { struct Client *acptr = user->server; @@ -439,10 +438,6 @@ int register_user(struct Client *cptr, struct Client *sptr) */ if (HasHiddenHost(sptr)) hide_hostmask(sptr, FLAG_HIDDENHOST); - if (IsInvisible(sptr)) - ++UserStats.inv_clients; - if (IsOper(sptr)) - ++UserStats.opers; tmpstr = umode_str(sptr); /* Send full IP address to IPv6-grokking servers. */ -- 2.20.1