projects
/
NextIRCd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge remote-tracking branch 'IOMultiplexer/v2'
[NextIRCd.git]
/
src
/
ircd_client.c
diff --git
a/src/ircd_client.c
b/src/ircd_client.c
index 57bfb3fed9287c93dc85f519c8c72295fef54d73..6fddf0966bbee8e2d5ab2b20dc144ce85526f54f 100644
(file)
--- 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 "struct_connection.h"
#include "struct_auth.h"
#include "ircd_config.h"
-#include "
version
.h"
+#include "
ircd_auth
.h"
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#define CLIENT_MAXLEN 512
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#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;
va_list arg_list;
char sendBuf[CLIENT_MAXLEN];
int pos;
@@
-42,19
+42,11
@@
static void client_printf(struct Connection *conn, const char *text, ...) {
}
void client_connected(struct Connection *conn) {
}
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_disconnected(struct Connection *conn) {
}
-
-void client_recv(struct Connection *conn, char *line) {
-
-}