1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-02 15:53:12 +02:00

relay/api: add nicklist boolean fields in GET /api/buffers

This commit is contained in:
Sébastien Helleu
2024-04-29 22:05:47 +02:00
parent 1d9cdba58e
commit de24921609
2 changed files with 12 additions and 0 deletions
+3
View File
@@ -390,6 +390,9 @@ relay_api_msg_buffer_to_json (struct t_gui_buffer *buffer,
ptr_string = weechat_buffer_get_string (buffer, "type");
MSG_ADD_STR_PTR("type", ptr_string);
MSG_ADD_HDATA_STR_COLORS("title", "title");
MSG_ADD_HDATA_VAR(Bool, "nicklist", integer, "nicklist");
MSG_ADD_HDATA_VAR(Bool, "nicklist_case_sensitive", integer, "nicklist_case_sensitive");
MSG_ADD_HDATA_VAR(Bool, "nicklist_display_groups", integer, "nicklist_display_groups");
/* local_variables */
json_local_vars = cJSON_CreateObject ();