diff options
| author | Alexander Barton <alex@barton.de> | 2013-03-09 17:58:10 +0100 |
|---|---|---|
| committer | Alexander Barton <alex@barton.de> | 2013-03-09 17:58:10 +0100 |
| commit | a2e26aad1e106aac256991a3d0c43c6c3fda7d4b (patch) | |
| tree | 944a0c254a1477fb7b3cb4a3c8a0eedc45ed7df8 | |
| parent | b4393277ea1cc67bc8433fcbeded3fc2186f5c54 (diff) | |
| download | ngircd-a2e26aad1e106aac256991a3d0c43c6c3fda7d4b.tar.gz ngircd-a2e26aad1e106aac256991a3d0c43c6c3fda7d4b.zip | |
Conn_Handler(): Don't test for penalty times
The Conn_Handler() main loop calls Handle_Buffer() which checks for the "penalty time" of each client itself, so don't do it twice.
| -rw-r--r-- | src/ngircd/conn.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ngircd/conn.c b/src/ngircd/conn.c index eeedb441..087f5fc8 100644 --- a/src/ngircd/conn.c +++ b/src/ngircd/conn.c @@ -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 |