fixed channel join bug
This commit is contained in:
parent
95c3aa1624
commit
c1ea031434
5
ii.c
5
ii.c
@ -421,10 +421,9 @@ static void run()
|
|||||||
maxfd = irc;
|
maxfd = irc;
|
||||||
FD_SET(irc, &rd);
|
FD_SET(irc, &rd);
|
||||||
for(c = channels; c; c = c->next) {
|
for(c = channels; c; c = c->next) {
|
||||||
if(maxfd < c->fd) {
|
if(maxfd < c->fd)
|
||||||
maxfd = c->fd;
|
maxfd = c->fd;
|
||||||
FD_SET(c->fd, &rd);
|
FD_SET(c->fd, &rd);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
r = select(maxfd + 1, &rd, 0, 0, 0);
|
r = select(maxfd + 1, &rd, 0, 0, 0);
|
||||||
|
Loading…
Reference in New Issue
Block a user