diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2005-06-16 11:02:19 +0000 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2005-06-16 11:02:19 +0000 |
commit | 9eb1422bb764342a6fde7e38595db940be33a04d (patch) | |
tree | 4b39ce31fc85c1f42310e7655548fb818abc5ac6 /src | |
parent | d86a783b6aefd97d6bfc2d211663003f1739ad7e (diff) | |
download | weechat-9eb1422bb764342a6fde7e38595db940be33a04d.zip |
Fixed plugins "print" and "prnt" functions: now ok for writing on server buffers
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/plugins.c | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/plugins/plugins.c b/src/plugins/plugins.c index aa35bbc36..7a7f194d7 100644 --- a/src/plugins/plugins.c +++ b/src/plugins/plugins.c @@ -424,9 +424,17 @@ plugin_find_buffer (char *server, char *channel) } else { - ptr_buffer = gui_current_window->buffer; - if (ptr_buffer->dcc) - ptr_buffer = gui_buffers; + if (!channel) + { + ptr_buffer = gui_current_window->buffer; + if (ptr_buffer->dcc) + ptr_buffer = gui_buffers; + } + else + { + if (ptr_server) + ptr_buffer = ptr_server->buffer; + } } if (!ptr_buffer) |