This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Undernet IRC Server Source Code.".

The branch, u2_10_12_branch has been updated
       via  b6f0b0f286a14781eb07d8aa08c9e500eefb8082 (commit)
      from  0c7218df03ccb43d5e594e69eb03c250330283b5 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit b6f0b0f286a14781eb07d8aa08c9e500eefb8082
Author: Michael Poole <[email protected]>
Date:   Sun May 15 17:05:19 2011 -0400

    When IAuth provides creation timestamp, exclude it from the name.

diff --git a/ChangeLog b/ChangeLog
index 604aacd..73d3d07 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-05-15  Michael Poole  <[email protected]>
+
+       * ircd/s_auth.c (iauth_cmd_done_account): Do not copy the
+       account's creation timestamp into the account name.
+
 2010-07-05  Kevin L. Mitchell  <[email protected]>
 
        * include/patchlevel.h (PATCHLEVEL): bump patchlevel from -rc2 to
diff --git a/ircd/s_auth.c b/ircd/s_auth.c
index de47b33..2a00dd1 100644
--- a/ircd/s_auth.c
+++ b/ircd/s_auth.c
@@ -1953,8 +1953,10 @@ static int iauth_cmd_done_account(struct IAuth *iauth, 
struct Client *cli,
   }
   /* If account has a creation timestamp, use it. */
   assert(cli_user(cli) != NULL);
-  if (params[0][len] == ':')
+  if (params[0][len] == ':') {
     cli_user(cli)->acc_create = strtoul(params[0] + len + 1, NULL, 10);
+    params[0][len] = '\0';
+  }
 
   /* Copy account name to User structure. */
   ircd_strncpy(cli_user(cli)->account, params[0], ACCOUNTLEN);
-----------------------------------------------------------------------

Summary of changes:
 ChangeLog     |    5 +++++
 ircd/s_auth.c |    4 +++-
 2 files changed, 8 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
Undernet IRC Server Source Code.
_______________________________________________
Patches mailing list
[email protected]
http://undernet.sbg.org/mailman/listinfo/patches

Reply via email to