1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-05 09:13:14 +02:00

relay/api: rename field "nicklist" to "nicklist_root" in GET /api/buffers

This commit is contained in:
Sébastien Helleu
2024-04-29 21:56:38 +02:00
parent 9cd7fd38a9
commit 1d9cdba58e
2 changed files with 13 additions and 13 deletions
+4 -4
View File
@@ -369,7 +369,7 @@ relay_api_msg_buffer_to_json (struct t_gui_buffer *buffer,
{
struct t_hdata *hdata;
struct t_gui_buffer *pointer;
cJSON *json, *json_local_vars, *json_lines, *json_nicklist;
cJSON *json, *json_local_vars, *json_lines, *json_nicklist_root;
const char *ptr_string;
char *string;
@@ -413,11 +413,11 @@ relay_api_msg_buffer_to_json (struct t_gui_buffer *buffer,
/* nicks */
if (nicks)
{
json_nicklist = relay_api_msg_nick_group_to_json (
json_nicklist_root = relay_api_msg_nick_group_to_json (
weechat_hdata_pointer (hdata, buffer, "nicklist_root"),
colors);
if (json_nicklist)
cJSON_AddItemToObject (json, "nicklist", json_nicklist);
if (json_nicklist_root)
cJSON_AddItemToObject (json, "nicklist_root", json_nicklist_root);
}
return json;