X-Git-Url: http://git.pk910.de/?p=ircu2.10.12-pk.git;a=blobdiff_plain;f=ircd%2Fs_auth.c;h=2a00dd1a781c46a4e180fd54da9de05de54266ed;hp=de47b33ee3bae3e47a324bbcde4fb8013076861c;hb=b6f0b0f286a14781eb07d8aa08c9e500eefb8082;hpb=0c7218df03ccb43d5e594e69eb03c250330283b5 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);