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

View File

@ -1,10 +1,12 @@
WeeChat - Wee Enhanced Environment for Chat
===========================================
ChangeLog - 2005-06-15
ChangeLog - 2005-06-16
Version 0.1.3 (under dev!):
* fixed plugins "print" and "prnt" functions: now ok for writing on server
buffers
* fixed color problem with new libcurses version
* fixed crash when using Alt-S or Alt-X on DCC buffer (Alt-D)
* fixed startup crash when config file (~/.weechat/weechat.rc) is not found

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)

View File

@ -1,10 +1,12 @@
WeeChat - Wee Enhanced Environment for Chat
===========================================
ChangeLog - 2005-06-15
ChangeLog - 2005-06-16
Version 0.1.3 (under dev!):
* fixed plugins "print" and "prnt" functions: now ok for writing on server
buffers
* fixed color problem with new libcurses version
* fixed crash when using Alt-S or Alt-X on DCC buffer (Alt-D)
* fixed startup crash when config file (~/.weechat/weechat.rc) is not found

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)