removed previously added debug output & fixed PING reply (PONG)
authorpk910 <philipp@zoelle1.de>
Wed, 10 Aug 2011 00:44:33 +0000 (02:44 +0200)
committerpk910 <philipp@zoelle1.de>
Wed, 10 Aug 2011 00:44:33 +0000 (02:44 +0200)
ClientSocket.c
IRCParser.c

index c071e1cfbd31db235a34a39037d8694dbe16d089..20ec7246a92af4bf506fc6fa59db7bcf986f2946 100644 (file)
@@ -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;
             }
index 187aeb6475263af61b46dd3110ab570a99cf17b3..622cd8a67f1b6c2d2039c6fb027885b40836abd5 100644 (file)
@@ -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;
 }