summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2007-02-03 08:49:23 +0000
committerSebastien Helleu <flashcode@flashtux.org>2007-02-03 08:49:23 +0000
commitef43b3e01381c39aafc4da039c7149be2a3bc95b (patch)
tree7116b6d683aa2dad3acd6124ee81ce8b1f54c4c0 /src/gui
parent0e113ded0950e3fd6877766053bbc7fe64626585 (diff)
downloadweechat-ef43b3e01381c39aafc4da039c7149be2a3bc95b.zip
Added numeric argument for /clear command (buffer number) (patch #5372)
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/gui-buffer.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/gui-buffer.c b/src/gui/gui-buffer.c
index e3f30e87c..25fd49afb 100644
--- a/src/gui/gui-buffer.c
+++ b/src/gui/gui-buffer.c
@@ -378,6 +378,12 @@ gui_buffer_clear (t_gui_buffer *buffer)
{
t_gui_window *ptr_win;
t_gui_line *ptr_line;
+
+ if (!buffer)
+ return;
+
+ if (buffer->type == BUFFER_TYPE_DCC)
+ return;
/* remove buffer from hotlist */
hotlist_remove_buffer (buffer);