diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2006-06-29 13:37:44 +0000 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2006-06-29 13:37:44 +0000 |
commit | 2068aa5322872201aef553fe6825fd97ebefe6bc (patch) | |
tree | cf08d7cca40d6227c41a45f500be8eeb4b227f65 /src | |
parent | 0221e4ab1510eb5bbd524f2b145eafeb937368a3 (diff) | |
download | weechat-2068aa5322872201aef553fe6825fd97ebefe6bc.zip |
Replaced call to plugin_find_server_channel() by gui_buffer_search() in weechat_plugin_get_buffer_data()
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/plugins-interface.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/plugins/plugins-interface.c b/src/plugins/plugins-interface.c index 0347368aa..567347870 100644 --- a/src/plugins/plugins-interface.c +++ b/src/plugins/plugins-interface.c @@ -1272,22 +1272,21 @@ weechat_plugin_free_buffer_info (t_weechat_plugin *plugin, t_plugin_buffer_info t_plugin_buffer_line * weechat_plugin_get_buffer_data (t_weechat_plugin *plugin, char *server, char *channel) { - t_irc_server *ptr_server; - t_irc_channel *ptr_channel; + t_gui_buffer *ptr_buffer; t_plugin_buffer_line *buffer_line, *last_buffer_line, *new_buffer_line; t_gui_line *ptr_line; if (!plugin) return NULL; - plugin_find_server_channel (server, channel, &ptr_server, &ptr_channel); + ptr_buffer = gui_buffer_search (server, channel); - if (!ptr_channel || !ptr_channel->buffer) + if (!ptr_buffer) return NULL; buffer_line = NULL; last_buffer_line = NULL; - for (ptr_line = ptr_channel->buffer->last_line; ptr_line; + for (ptr_line = ptr_buffer->last_line; ptr_line; ptr_line = ptr_line->prev_line) { new_buffer_line = (t_plugin_buffer_line *) malloc (sizeof (t_plugin_buffer_line)); |