When IAuth provides creation timestamp, exclude it from the name.
authorMichael Poole <mdpoole@troilus.org>
Sun, 15 May 2011 21:05:19 +0000 (17:05 -0400)
committerMichael Poole <mdpoole@troilus.org>
Sun, 15 May 2011 21:05:19 +0000 (17:05 -0400)
ChangeLog
ircd/s_auth.c

index 604aacdadd645411a1f496a563807acf2199bb8a..73d3d076187580f8261e1846c2c6215c0db204b8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-05-15  Michael Poole  <mdpoole@troilus.org>
+
+       * 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  <klmitch@mit.edu>
 
        * include/patchlevel.h (PATCHLEVEL): bump patchlevel from -rc2 to
index de47b33ee3bae3e47a324bbcde4fb8013076861c..2a00dd1a781c46a4e180fd54da9de05de54266ed 100644 (file)
@@ -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);