summaryrefslogtreecommitdiff
path: root/src/gui/curses
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2005-05-05 16:26:34 +0000
committerSebastien Helleu <flashcode@flashtux.org>2005-05-05 16:26:34 +0000
commitc8ad30020ba80fa1a27d21385a6f2869830b91c0 (patch)
tree589fcc057b4641a348a0b2ca7277770069a107c1 /src/gui/curses
parentc6fc8bd1479a046e5a0e9ba5f344ebfdc9ce4bd1 (diff)
downloadweechat-c8ad30020ba80fa1a27d21385a6f2869830b91c0.zip
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
Diffstat (limited to 'src/gui/curses')
-rw-r--r--src/gui/curses/gui-display.c6
1 files changed, 6 insertions, 0 deletions
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);