1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-07 02:03:14 +02:00

- Fix compile failure introduced by fdb2fd1f8963 when zip links are disabled.

This commit is contained in:
Nathan Phillip Brink
2011-06-05 23:02:13 -04:00
parent 143858cc5b
commit ceba1d07c6
2 changed files with 12 additions and 2 deletions
+2
View File
@@ -2291,3 +2291,5 @@
connection was never actually sent (due to buffering). Hence, things like
the /SQUIT reason was never seen on the other side (just 'server closed
the connection'). This has now been fixed.
- Fix compile failure introduced by last change when zip links are
disabled.
+10 -2
View File
@@ -120,11 +120,19 @@ void flush_connections(aClient* cptr)
{
for (i = LastSlot; i >= 0; i--)
if ((acptr = local[i]) && !(acptr->flags & FLAGS_BLOCKED)
&& ((DBufLength(&cptr->sendQ) > 0) || (IsZipped(cptr) && cptr->zip->outcount)) )
&& ((DBufLength(&cptr->sendQ) > 0)
#ifdef ZIP_LINKS
|| (IsZipped(cptr) && cptr->zip->outcount)
#endif /* ZIP_LINKS */
) )
send_queued(acptr);
}
else if (cptr->fd >= 0 && !(cptr->flags & FLAGS_BLOCKED)
&& ((DBufLength(&cptr->sendQ) > 0) || (IsZipped(cptr) && cptr->zip->outcount)) )
&& ((DBufLength(&cptr->sendQ) > 0)
#ifdef ZIP_LINKS
|| (IsZipped(cptr) && cptr->zip->outcount)
#endif /* ZIP_LINKS */
) )
send_queued(cptr);
}