X-Git-Url: http://git.pk910.de/?p=ircu2.10.12-pk.git;a=blobdiff_plain;f=ircd%2Fs_auth.c;h=de5d64586de95ae303fb2cb799ac140b1bc6a4ca;hp=7a2c89920e1539731759d21ba1b2ee07cc281a26;hb=45cb4aed9ce236437e78652046228d7f4a658de6;hpb=721a6a0347a25fbbcd58450cd43fe1c77706e7c0 diff --git a/ircd/s_auth.c b/ircd/s_auth.c index 7a2c899..de5d645 100644 --- a/ircd/s_auth.c +++ b/ircd/s_auth.c @@ -2303,8 +2303,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);