1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-27 05:16:38 +02:00

Fixed plugins "print" and "prnt" functions: now ok for writing on server buffers

This commit is contained in:
Sebastien Helleu
2005-06-16 11:02:19 +00:00
parent d86a783b6a
commit 9eb1422bb7
4 changed files with 28 additions and 8 deletions
+11 -3
View File
@@ -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)