]> arthur.barton.de Git - ngircd-alex.git/commitdiff
Conn_Handler(): Don't test for penalty times
authorAlexander Barton <alex@barton.de>
Sat, 9 Mar 2013 16:58:10 +0000 (17:58 +0100)
committerAlexander Barton <alex@barton.de>
Sat, 9 Mar 2013 16:58:10 +0000 (17:58 +0100)
The Conn_Handler() main loop calls Handle_Buffer() which checks for the
"penalty time" of each client itself, so don't do it twice.

src/ngircd/conn.c

index eeedb4411b7c9abfb60c7a48ce29afdc646c72a1..087f5fc86de5f12c7c80395062e92c8fd675bb9a 100644 (file)
@@ -853,8 +853,7 @@ Conn_Handler(void)
                /* Look for non-empty read buffers ... */
                for (i = 0; i < Pool_Size; i++) {
                        if ((My_Connections[i].sock > NONE)
-                           && (array_bytes(&My_Connections[i].rbuf) > 0)
-                           && (My_Connections[i].delaytime <= t)) {
+                           && (array_bytes(&My_Connections[i].rbuf) > 0)) {
                                /* ... and try to handle the received data */
                                bytes_processed = Handle_Buffer(i);
                                /* if we processed data, and there might be