fixed channel join bug

This commit is contained in:
nion@noname 2006-01-29 19:23:48 +01:00
parent 95c3aa1624
commit c1ea031434

3
ii.c
View File

@ -421,11 +421,10 @@ 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);
}
}
r = select(maxfd + 1, &rd, 0, 0, 0);
if(r == -1 && errno == EINTR)