mirror of
https://github.com/weechat/weechat.git
synced 2026-06-30 23:06:38 +02:00
relay/api: add key "visible" with boolean value in nick and group objects
This commit is contained in:
@@ -533,6 +533,7 @@ relay_api_msg_nick_to_json (struct t_gui_nick *nick)
|
||||
MSG_ADD_HDATA_STR("prefix_color", "prefix_color");
|
||||
MSG_ADD_HDATA_STR("name", "name");
|
||||
MSG_ADD_HDATA_STR("color", "color");
|
||||
MSG_ADD_HDATA_VAR(Bool, "visible", integer, "visible");
|
||||
|
||||
return json;
|
||||
}
|
||||
@@ -563,6 +564,7 @@ relay_api_msg_nick_group_to_json (struct t_gui_nick_group *nick_group)
|
||||
|
||||
MSG_ADD_HDATA_STR("name", "name");
|
||||
MSG_ADD_HDATA_STR("color", "color");
|
||||
MSG_ADD_HDATA_VAR(Bool, "visible", integer, "visible");
|
||||
|
||||
json_groups = cJSON_CreateArray ();
|
||||
if (json_groups)
|
||||
|
||||
Reference in New Issue
Block a user