diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2024-04-29 22:43:38 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2024-04-29 22:43:38 +0200 |
commit | b8f64685900fe73781fbdc00a28d3438eedc4ed5 (patch) | |
tree | f0595a2e39bfb2b2093ada26c9fd60c2b87274b1 /src/plugins/relay/api | |
parent | de2492160978639d6c5aac3cdd82aecbdedf8e11 (diff) | |
download | weechat-b8f64685900fe73781fbdc00a28d3438eedc4ed5.zip |
relay/api: add color names for groups and nicks in GET /api/buffers
Diffstat (limited to 'src/plugins/relay/api')
-rw-r--r-- | src/plugins/relay/api/relay-api-msg.c | 3 |
1 files changed, 3 insertions, 0 deletions
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"); |