From: pk910 Date: Wed, 10 Aug 2011 00:44:33 +0000 (+0200) Subject: removed previously added debug output & fixed PING reply (PONG) X-Git-Tag: v5.3~637 X-Git-Url: http://git.pk910.de/?a=commitdiff_plain;h=173ee86c2b78acd2ccc57bf0814235e8445123c5;p=NeonServV5.git removed previously added debug output & fixed PING reply (PONG) --- diff --git a/ClientSocket.c b/ClientSocket.c index c071e1c..20ec724 100644 --- a/ClientSocket.c +++ b/ClientSocket.c @@ -147,13 +147,9 @@ void socket_loop(int timeout_seconds) { sock->buffer[sock->bufferpos + i] = buffer[i]; } sock->bufferpos += i; - sock->buffer[sock->bufferpos] = 0; //debug only - printf("BUFFER: %s\n", sock->buffer); } } else { bytes = read(sock->sock, sock->buffer, sizeof(sock->buffer)); - sock->buffer[bytes] = 0; //debug only - printf("BUFFER: %s\n", sock->buffer); if(bytes > 0) sock->bufferpos = bytes; } diff --git a/IRCParser.c b/IRCParser.c index 187aeb6..622cd8a 100644 --- a/IRCParser.c +++ b/IRCParser.c @@ -81,7 +81,7 @@ static IRC_CMD(raw_001) { static IRC_CMD(raw_ping) { if(argc == 0) return 0; - putsock(client, "POMG :%s", argv[0]); + putsock(client, "PONG :%s", argv[0]); return 1; }