mirror of
https://github.com/weechat/weechat.git
synced 2026-07-04 00:33:13 +02:00
Add filter with third argument of infolist_get for some infolists (bars, bar items, buffers, filters, plugins, irc_server, alias, script list)
This commit is contained in:
+3
-1
@@ -2303,7 +2303,9 @@ gui_bar_add_to_infolist (struct t_infolist *infolist,
|
||||
ptr_item = infolist_new_item (infolist);
|
||||
if (!ptr_item)
|
||||
return 0;
|
||||
|
||||
|
||||
if (!infolist_new_var_string (ptr_item, "name", bar->name))
|
||||
return 0;
|
||||
if (!infolist_new_var_integer (ptr_item, "hidden", CONFIG_INTEGER(bar->options[GUI_BAR_OPTION_HIDDEN])))
|
||||
return 0;
|
||||
if (!infolist_new_var_integer (ptr_item, "priority", CONFIG_INTEGER(bar->options[GUI_BAR_OPTION_PRIORITY])))
|
||||
|
||||
@@ -505,6 +505,8 @@ gui_filter_add_to_infolist (struct t_infolist *infolist,
|
||||
|
||||
if (!infolist_new_var_integer (ptr_item, "enabled", filter->enabled))
|
||||
return 0;
|
||||
if (!infolist_new_var_string (ptr_item, "name", filter->name))
|
||||
return 0;
|
||||
if (!infolist_new_var_string (ptr_item, "plugin_name", filter->plugin_name))
|
||||
return 0;
|
||||
if (!infolist_new_var_string (ptr_item, "buffer_name", filter->buffer_name))
|
||||
|
||||
Reference in New Issue
Block a user