diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2024-04-29 22:05:47 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2024-04-29 22:05:47 +0200 |
commit | de2492160978639d6c5aac3cdd82aecbdedf8e11 (patch) | |
tree | 38c0dd3fa3c0a93be29f055d8526d7a529dcc4f6 /src/plugins/relay | |
parent | 1d9cdba58e834ff82033c92bcc570a03bcc61084 (diff) | |
download | weechat-de2492160978639d6c5aac3cdd82aecbdedf8e11.zip |
relay/api: add nicklist boolean fields in GET /api/buffers
Diffstat (limited to 'src/plugins/relay')
-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 909269631..a63cb7a90 100644 --- a/src/plugins/relay/api/relay-api-msg.c +++ b/src/plugins/relay/api/relay-api-msg.c @@ -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 (); |