X-Git-Url: http://git.pk910.de/?p=ircu2.10.12-pk.git;a=blobdiff_plain;f=ircd%2Fs_auth.c;h=71c86385db89e66b589a99c4abae9ecc37da5a65;hp=405978eb1d3a55ea79ea20aefb46084250ad7b74;hb=98c74ba6a77e8f110f03252eead8cd37e7ecc83e;hpb=c3727b053aa20cecf3984cc0c9c23b0140edf52c diff --git a/ircd/s_auth.c b/ircd/s_auth.c index 405978e..71c8638 100644 --- a/ircd/s_auth.c +++ b/ircd/s_auth.c @@ -1052,7 +1052,7 @@ signed int auth_loc_query(struct AuthRequest *auth, const char *account, const c } /** Finishes a LOC request. */ -void auth_loc_reply(const char *numeric, const char *account, const char *fakehost, const char *flags[], signed int argc) { +void auth_loc_reply(const char *numeric, const char *account, const char *fakehost, char *flags[], signed int argc) { char *timestamp; struct AuthRequest *auth; @@ -1328,12 +1328,6 @@ void start_auth(struct Client* client) /* Set unregistered numnick. */ auth_set_numnick(auth); - /* Try to start DNS lookup. */ - start_dns_query(auth); - - /* Try to start ident lookup. */ - start_auth_query(auth); - /* Set required client inputs for users. */ if (IsUserPort(client)) { cli_user(client) = make_user(client); @@ -1345,6 +1339,12 @@ void start_auth(struct Client* client) if(start_iauth_query(auth)) return; } + /* Try to start DNS lookup. */ + start_dns_query(auth); + + /* Try to start ident lookup. */ + start_auth_query(auth); + /* Add client to GlobalClientList. */ add_client_to_list(client); @@ -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);