]> jfr.im git - irc/unrealircd/unrealircd.git/commitdiff
- Fix compile failure introduced by fdb2fd1f8963 when zip links are disabled.
authorNathan Phillip Brink <redacted>
Mon, 6 Jun 2011 03:02:13 +0000 (23:02 -0400)
committerNathan Phillip Brink <redacted>
Mon, 6 Jun 2011 03:02:13 +0000 (23:02 -0400)
Changes
src/send.c

diff --git a/Changes b/Changes
index 05cdd0b42729908d585fbcd53fb02cfe77bdda36..0c4ee0ddbc27c1710880e899fedc2815009d8f0d 100644 (file)
--- a/Changes
+++ b/Changes
   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.
index a34c5f12fff7612e2cbddd3d4df5533cf5a3b266..d5edaf280cc122abed75a8f830d0cf6c62bce2e7 100644 (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);
 
 }