From b8f64685900fe73781fbdc00a28d3438eedc4ed5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Mon, 29 Apr 2024 22:43:38 +0200 Subject: relay/api: add color names for groups and nicks in GET /api/buffers --- src/plugins/relay/api/relay-api-msg.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/plugins/relay') diff --git a/src/plugins/relay/api/relay-api-msg.c b/src/plugins/relay/api/relay-api-msg.c index a63cb7a90..929428469 100644 --- a/src/plugins/relay/api/relay-api-msg.c +++ b/src/plugins/relay/api/relay-api-msg.c @@ -584,8 +584,10 @@ relay_api_msg_nick_to_json (struct t_gui_nick *nick, (ptr_group) ? weechat_hdata_longlong (relay_hdata_nick_group, ptr_group, "id") : -1)); MSG_ADD_HDATA_STR("prefix", "prefix"); + MSG_ADD_HDATA_STR("prefix_color_name", "prefix_color"); MSG_ADD_HDATA_COLOR("prefix_color", "prefix_color"); MSG_ADD_HDATA_STR("name", "name"); + MSG_ADD_HDATA_STR("color_name", "color"); MSG_ADD_HDATA_COLOR("color", "color"); MSG_ADD_HDATA_VAR(Bool, "visible", integer, "visible"); @@ -625,6 +627,7 @@ relay_api_msg_nick_group_to_json (struct t_gui_nick_group *nick_group, (ptr_group) ? weechat_hdata_longlong (relay_hdata_nick_group, ptr_group, "id") : -1)); MSG_ADD_HDATA_STR("name", "name"); + MSG_ADD_HDATA_STR("color_name", "color"); MSG_ADD_HDATA_COLOR("color", "color"); MSG_ADD_HDATA_VAR(Bool, "visible", integer, "visible"); -- cgit v1.2.3