diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2008-10-20 11:31:02 +0200 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2008-10-20 11:31:02 +0200 |
commit | 533155816dec43a5c9861c7e648736a8d5122c14 (patch) | |
tree | 44b2d1796b3a236360d12971d39ce460fc23a9e7 /src/plugins/irc/irc-channel.c | |
parent | a33e44c7e1474e5efc28809c8adaaf2c58f4b0d3 (diff) | |
download | weechat-533155816dec43a5c9861c7e648736a8d5122c14.zip |
Add some buffer infos in IRC infolists hooked
Diffstat (limited to 'src/plugins/irc/irc-channel.c')
-rw-r--r-- | src/plugins/irc/irc-channel.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/plugins/irc/irc-channel.c b/src/plugins/irc/irc-channel.c index e895ec633..89d3c06ba 100644 --- a/src/plugins/irc/irc-channel.c +++ b/src/plugins/irc/irc-channel.c @@ -426,6 +426,16 @@ irc_channel_add_to_infolist (struct t_infolist *infolist, if (!ptr_item) return 0; + if (!weechat_infolist_new_var_pointer (ptr_item, "buffer", channel->buffer)) + return 0; + if (!weechat_infolist_new_var_string (ptr_item, "buffer_name", + (channel->buffer) ? + weechat_buffer_get_string (channel->buffer, "name") : "")) + return 0; + if (!weechat_infolist_new_var_string (ptr_item, "buffer_short_name", + (channel->buffer) ? + weechat_buffer_get_string (channel->buffer, "short_name") : "")) + return 0; if (!weechat_infolist_new_var_integer (ptr_item, "type", channel->type)) return 0; if (!weechat_infolist_new_var_string (ptr_item, "name", channel->name)) |