added raw_topic, raw_privmsg and wrote the small "dead channel garbage collector"
[NeonServV5.git] / ClientSocket.c
index 2f80c71bbeee31e9bff8f7dfdd7672a26cf319ae..5a186c6fe542f26645b74a3e1f9ae8e82a3c695f 100644 (file)
@@ -156,6 +156,7 @@ void socket_loop(int timeout_seconds) {
             if(bytes <= 0) {
                 //error
                 sock->flags &= ~(SOCKET_FLAG_CONNECTED | SOCKET_FLAG_READY);
+                bot_disconnect(sock);
             } else {
                 int used = parse_lines(sock, sock->buffer, sock->bufferpos);
                 if(used == sock->bufferpos + 1) {