Fix SourceForge bug #2816618 (default user modes in connection class do not work).
authorMichael Poole <mdpoole@troilus.org>
Mon, 6 Jul 2009 02:36:29 +0000 (02:36 +0000)
committerMichael Poole <mdpoole@troilus.org>
Mon, 6 Jul 2009 02:36:29 +0000 (02:36 +0000)
git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/branches/u2_10_12_branch@1918 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

ChangeLog
ircd/s_user.c

index f119950d43091a8e3db9e0d0039124a0dd66db90..06a1d69e1e7df17c81a5753e239141796f1c2c28 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2009-07-05  Michael Poole <mdpoole@troilus.org>
+
+       * 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 <mdpoole@troilus.org>
 
        * ircd/m_gline.c (ms_gline): Fix the sense of the test for
index a989a06d00778160d48901cf8c59506261790fd6..97d3517a4b0f2ab3af63ed49755eb9bf72301488 100644 (file)
@@ -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. */