From: pk910 Date: Tue, 11 Sep 2012 19:22:31 +0000 (+0200) Subject: use putsock function instead of iohandler functions for login commands (PASS, USER... X-Git-Url: http://git.pk910.de/?p=NeonServV5.git;a=commitdiff_plain;h=83c4b223cac21b7177bd1e276c326eb020bfb887;hp=15d3e663d09e801fed79a8af7165e1698a377f8e use putsock function instead of iohandler functions for login commands (PASS, USER, NICK) --- diff --git a/src/ClientSocket.c b/src/ClientSocket.c index eaf43d4..3be7037 100644 --- a/src/ClientSocket.c +++ b/src/ClientSocket.c @@ -226,9 +226,9 @@ static IOHANDLER_CALLBACK(socket_callback) { case IOEVENT_CONNECTED: client->flags |= SOCKET_FLAG_CONNECTED; if(client->pass && strcmp(client->pass, "")) - iohandler_printf(event->iofd, "PASS :%s", client->pass); - iohandler_printf(event->iofd, "USER %s 0 0 :%s", client->ident, client->realname); - iohandler_printf(event->iofd, "NICK %s", client->nick); + putsock(client, "PASS :%s", client->pass); + putsock(client, "USER %s 0 0 :%s", client->ident, client->realname); + putsock(client, "NICK %s", client->nick); break; case IOEVENT_NOTCONNECTED: case IOEVENT_CLOSED: