diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2009-04-24 18:59:22 +0200 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2009-04-24 18:59:22 +0200 |
commit | 93038846139cbadfb22f9a3a0da8fed2ee55e057 (patch) | |
tree | 36b9b3217a742436d147b50fdbcb3a7687c1e115 /src/gui/gui-bar.c | |
parent | e3d2728571be0b56dc67253137366d96e3e7282a (diff) | |
download | weechat-93038846139cbadfb22f9a3a0da8fed2ee55e057.zip |
Add filter with third argument of infolist_get for some infolists (bars, bar items, buffers, filters, plugins, irc_server, alias, script list)
Diffstat (limited to 'src/gui/gui-bar.c')
-rw-r--r-- | src/gui/gui-bar.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/gui-bar.c b/src/gui/gui-bar.c index 77a7db154..594127f38 100644 --- a/src/gui/gui-bar.c +++ b/src/gui/gui-bar.c @@ -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]))) |