summaryrefslogtreecommitdiff
path: root/src/plugins/relay
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2024-05-12 09:48:04 +0200
committerSébastien Helleu <flashcode@flashtux.org>2024-05-12 12:46:32 +0200
commit3bfb7d7f04635f214a8c7db6744373364e9717db (patch)
tree69ddbd8825eab6c6e9ee1da078e9a183e9805209 /src/plugins/relay
parentdcb8fcb6ed415f0c936093cbc80ecf9396485a9a (diff)
downloadweechat-3bfb7d7f04635f214a8c7db6744373364e9717db.zip
relay/api: add field "modes" in GET /api/buffers
Diffstat (limited to 'src/plugins/relay')
-rw-r--r--src/plugins/relay/api/relay-api-msg.c1
-rw-r--r--src/plugins/relay/api/relay-api-protocol.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/relay/api/relay-api-msg.c b/src/plugins/relay/api/relay-api-msg.c
index 56b184ab8..8d87649a7 100644
--- a/src/plugins/relay/api/relay-api-msg.c
+++ b/src/plugins/relay/api/relay-api-msg.c
@@ -385,6 +385,7 @@ relay_api_msg_buffer_to_json (struct t_gui_buffer *buffer,
lines = lines_free;
MSG_ADD_STR_PTR("type", ptr_string);
MSG_ADD_HDATA_STR_COLORS("title", "title");
+ MSG_ADD_HDATA_STR_COLORS("modes", "modes");
MSG_ADD_HDATA_STR_COLORS("input_prompt", "input_prompt");
MSG_ADD_HDATA_STR("input", "input_buffer");
MSG_ADD_HDATA_VAR(Number, "input_position", integer, "input_buffer_pos");
diff --git a/src/plugins/relay/api/relay-api-protocol.c b/src/plugins/relay/api/relay-api-protocol.c
index c3035edcd..0ee044095 100644
--- a/src/plugins/relay/api/relay-api-protocol.c
+++ b/src/plugins/relay/api/relay-api-protocol.c
@@ -94,6 +94,7 @@ relay_api_protocol_signal_buffer_cb (const void *pointer, void *data,
|| (strcmp (signal, "buffer_unhidden") == 0)
|| (strcmp (signal, "buffer_renamed") == 0)
|| (strcmp (signal, "buffer_title_changed") == 0)
+ || (strcmp (signal, "buffer_modes_changed") == 0)
|| (strncmp (signal, "buffer_localvar_", 16) == 0)
|| (strcmp (signal, "buffer_cleared") == 0)
|| (strcmp (signal, "buffer_closing") == 0)