diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2007-02-03 08:49:23 +0000 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2007-02-03 08:49:23 +0000 |
commit | ef43b3e01381c39aafc4da039c7149be2a3bc95b (patch) | |
tree | 7116b6d683aa2dad3acd6124ee81ce8b1f54c4c0 /src/gui | |
parent | 0e113ded0950e3fd6877766053bbc7fe64626585 (diff) | |
download | weechat-ef43b3e01381c39aafc4da039c7149be2a3bc95b.zip |
Added numeric argument for /clear command (buffer number) (patch #5372)
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/gui-buffer.c | 6 |
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); |