ii

git clone https://orangeshoelaces.net/git/ii.git

c1ea031434c56126d1b0ba139f605c55d14ddf2f

Author: nion@noname on 01/29/2006

Committer: nion@noname on 01/29/2006

fixed channel join bug

Stats

ii.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)

Patch

diff --git a/ii.c b/ii.c
index 68dc63c..67e260f 100644
--- a/ii.c
+++ b/ii.c
@@ -421,10 +421,9 @@ static void run()
 		maxfd = irc;
 		FD_SET(irc, &rd);
 		for(c = channels; c; c = c->next) {
-			if(maxfd < c->fd) {
+			if(maxfd < c->fd)
 				maxfd = c->fd;
-				FD_SET(c->fd, &rd);
-			}
+			FD_SET(c->fd, &rd);
 		}
 
 		r = select(maxfd + 1, &rd, 0, 0, 0);