1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-01 23:36:37 +02:00

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

This commit is contained in:
Sébastien Helleu
2024-04-07 11:01:40 +02:00
parent 7c2f44e74e
commit 14beee8a91
2 changed files with 14 additions and 13 deletions
+4 -4
View File
@@ -370,7 +370,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_nicks;
cJSON *json, *json_local_vars, *json_lines, *json_nicklist;
const char *ptr_string;
char *string;
@@ -414,10 +414,10 @@ relay_api_msg_buffer_to_json (struct t_gui_buffer *buffer,
/* nicks */
if (nicks)
{
json_nicks = relay_api_msg_nick_group_to_json (
json_nicklist = relay_api_msg_nick_group_to_json (
weechat_hdata_pointer (hdata, buffer, "nicklist_root"));
if (json_nicks)
cJSON_AddItemToObject (json, "nicks", json_nicks);
if (json_nicklist)
cJSON_AddItemToObject (json, "nicklist", json_nicklist);
}
return json;