aboutsummaryrefslogtreecommitdiffstats
path: root/irc.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2006-10-31 09:35:36 +0100
committerWilmer van der Gaast <wilmer@gaast.net>2006-10-31 09:35:36 +0100
commitbbb6ffb4d2f4e02d3f856f731a83cb6b911bf659 (patch)
tree2b08886f44bf98772847e7497873d146b951f847 /irc.c
parent6237ded20b3f3058f1ada9b6afeaa07fcba535eb (diff)
Disabling little optimization in irc.c because it can't be done safely in
this part of the code for now.
Diffstat (limited to 'irc.c')
-rw-r--r--irc.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/irc.c b/irc.c
index 8f79b535..f9654034 100644
--- a/irc.c
+++ b/irc.c
@@ -584,8 +584,11 @@ void irc_vawrite( irc_t *irc, char *format, va_list params )
immediately. If it returns TRUE, it should be called again, so add the event to
the queue. If it's FALSE, we emptied the buffer and saved ourselves some work
in the event queue. */
- if( bitlbee_io_current_client_write( irc, irc->fd, GAIM_INPUT_WRITE ) )
- irc->w_watch_source_id = b_input_add( irc->fd, GAIM_INPUT_WRITE, bitlbee_io_current_client_write, irc );
+ /* Really can't be done as long as the code doesn't do error checking very well:
+ if( bitlbee_io_current_client_write( irc, irc->fd, GAIM_INPUT_WRITE ) ) */
+
+ /* So just always do it via the event handler. */
+ irc->w_watch_source_id = b_input_add( irc->fd, GAIM_INPUT_WRITE, bitlbee_io_current_client_write, irc );
}
return;