More support for multiple identities.
This commit is contained in:
parent
edc5e16d8a
commit
e7ec533944
11 changed files with 516 additions and 121 deletions
|
@ -62,11 +62,14 @@ bar_item_buffer_plugin(void *data, struct t_gui_bar_item *item,
|
|||
const char *identity_name = identity->name;
|
||||
|
||||
snprintf(string, sizeof(string),
|
||||
"%s%s/%s%s",
|
||||
"%s%s/%s%s%s/%s%s",
|
||||
plugin_name,
|
||||
weechat_color("bar_delim"),
|
||||
weechat_color("bar_fg"),
|
||||
identity_name);
|
||||
identity_name,
|
||||
weechat_color("bar_delim"),
|
||||
weechat_color("bar_fg"),
|
||||
identity->tox_online ? "online" : "offline");
|
||||
|
||||
return strdup(string);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue