X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=src%2Fircd_client.c;h=6fddf0966bbee8e2d5ab2b20dc144ce85526f54f;hb=e17a8a5dc929df2a5ae6169f1955fcde7c70e04b;hp=9fe8181f2ec5994e2163ddd1407326d65f9adb0b;hpb=466f97ae1a374de40219ab78c2d5ad622a90d126;p=NextIRCd.git diff --git a/src/ircd_client.c b/src/ircd_client.c index 9fe8181..6fddf09 100644 --- a/src/ircd_client.c +++ b/src/ircd_client.c @@ -20,14 +20,14 @@ #include "struct_connection.h" #include "struct_auth.h" #include "ircd_config.h" -#include "version.h" +#include "ircd_auth.h" #include #include #include #define CLIENT_MAXLEN 512 -static void client_printf(struct Connection *conn, const char *text, ...) { +void client_printf(struct Connection *conn, const char *text, ...) { va_list arg_list; char sendBuf[CLIENT_MAXLEN]; int pos; @@ -42,25 +42,11 @@ static void client_printf(struct Connection *conn, const char *text, ...) { } void client_connected(struct Connection *conn) { - client_printf(conn, "NOTICE AUTH :*** NextIRCd v%d.%d (%s)", VERSION_NUMBER, patchlevel, revision); - - struct Auth *auth = calloc(1, sizeof(*auth)); - auth->conn = conn; - conn->data.auth = auth; - - /* maybe do some stuff here? */ + struct Auth *auth = auth_new(conn); + + auth_start_dnsreverse(auth); } void client_disconnected(struct Connection *conn) { } - -void client_recv(struct Connection *conn, char *line) { - if(conn->server) { - // Server protocol - } else { - - - - } -}