From c8ad30020ba80fa1a27d21385a6f2869830b91c0 Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Thu, 5 May 2005 16:26:34 +0000 Subject: Improved Perl interface and some changes in Python: - function "print_with_channel" was removed - function "command" now runs weechat command or send text to channel - Perl functions are now called with weechat::name (instead of IRC::name) - IRC::xxx functions are still active for compatibility with old scripts --- src/gui/curses/gui-display.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/gui/curses') diff --git a/src/gui/curses/gui-display.c b/src/gui/curses/gui-display.c index c43718e76..6ef9765ae 100644 --- a/src/gui/curses/gui-display.c +++ b/src/gui/curses/gui-display.c @@ -2600,6 +2600,12 @@ gui_printf_type_color (t_gui_buffer *buffer, int type, int color, char *message, } } + if (buffer->dcc) + buffer = gui_buffers; + + if (buffer->dcc) + return; + va_start (argptr, message); vsnprintf (buf, sizeof (buf) - 1, message, argptr); va_end (argptr); -- cgit v1.2.3