diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2008-03-22 23:36:12 +0100 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2008-03-22 23:36:12 +0100 |
commit | 61ca92972886cd7a9bc301ae7e23d6dde74920bc (patch) | |
tree | 7b69905a86b095f4fe6dffaa5a86ae6a0725c125 /src/plugins/irc/irc.h | |
parent | 8c4dc57d8e5a6b1f9f239bdcbf30dd07480993be (diff) | |
download | weechat-61ca92972886cd7a9bc301ae7e23d6dde74920bc.zip |
Added tags for lines and custom filtering by tags or regex (task #7674), fixed many memory leaks
Diffstat (limited to 'src/plugins/irc/irc.h')
-rw-r--r-- | src/plugins/irc/irc.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/plugins/irc/irc.h b/src/plugins/irc/irc.h index 3c458fd3c..6c0fd99bc 100644 --- a/src/plugins/irc/irc.h +++ b/src/plugins/irc/irc.h @@ -29,22 +29,22 @@ #define IRC_GET_SERVER(__buffer) \ struct t_weechat_plugin *buffer_plugin = NULL; \ struct t_irc_server *ptr_server = NULL; \ - buffer_plugin = weechat_buffer_get (__buffer, "plugin"); \ + buffer_plugin = weechat_buffer_get_pointer (__buffer, "plugin"); \ if (buffer_plugin == weechat_irc_plugin) \ ptr_server = irc_server_search ( \ - weechat_buffer_get (__buffer, "category")); + weechat_buffer_get_string (__buffer, "category")); #define IRC_GET_SERVER_CHANNEL(__buffer) \ struct t_weechat_plugin *buffer_plugin = NULL; \ struct t_irc_server *ptr_server = NULL; \ struct t_irc_channel *ptr_channel = NULL; \ - buffer_plugin = weechat_buffer_get (__buffer, "plugin"); \ + buffer_plugin = weechat_buffer_get_pointer (__buffer, "plugin"); \ if (buffer_plugin == weechat_irc_plugin) \ { \ ptr_server = irc_server_search ( \ - weechat_buffer_get (__buffer, "category")); \ + weechat_buffer_get_string (__buffer, "category")); \ ptr_channel = irc_channel_search ( \ - ptr_server, weechat_buffer_get (__buffer, "name")); \ + ptr_server, weechat_buffer_get_string (__buffer, "name")); \ } #define IRC_COLOR_CHAT weechat_color("color_chat") |