X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=src%2Fircd_client.c;h=5af6f1d2bf40d29864ad69d6619950e50d40e0cd;hb=fc3df376babe61fd8b725fb8c48c189eaebeec50;hp=9ef6451131669355d1da8a5eb943fb1df3c19870;hpb=d7385887d5b489a515a111235eae339a4284d81e;p=NextIRCd.git diff --git a/src/ircd_client.c b/src/ircd_client.c index 9ef6451..5af6f1d 100644 --- a/src/ircd_client.c +++ b/src/ircd_client.c @@ -19,15 +19,14 @@ #include "ircd_sock.h" #include "struct_connection.h" #include "struct_auth.h" -#include "config.h" -#include "version.h" +#include "ircd_config.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,19 +41,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) { - -}