X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=src%2Fircd_auth.c;h=1645892042e434b3965ea2fc330a40a7d0297e60;hb=HEAD;hp=5634038747e984b09e4b04ca31fffc9e6e89b495;hpb=2d694e116e0f9c5bf9f72c78d12892266cfa8288;p=NextIRCd.git diff --git a/src/ircd_auth.c b/src/ircd_auth.c index 5634038..1645892 100644 --- a/src/ircd_auth.c +++ b/src/ircd_auth.c @@ -37,6 +37,7 @@ struct Auth *auth_new(struct Connection *conn) { socket_printf(conn, "NOTICE AUTH :*** NextIRCd v%d.%d (%s)", VERSION_NUMBER, patchlevel, revision); auth->conn = conn; + conn->data.auth = auth; time(&auth->startup_time); auth->prev = authlist_last; @@ -91,6 +92,7 @@ void auth_try_finish(struct Auth *auth) { return; if(!auth->sent_ping) { auth->sent_ping = 1; + socket_printf(auth->conn, ":AUTH PING :%d", auth->startup_time); } else if(auth->have_pong && auth->have_dnsresolv) { struct Client *client = client_connected(auth); auth->conn->authed = 1;