summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2024-05-12 09:59:12 +0200
committerSébastien Helleu <flashcode@flashtux.org>2024-05-12 12:46:32 +0200
commit3aec35aeece3b25b458f7df73a7493d0f7e9a7c0 (patch)
tree9b4b9be189201bad3e82f56c8d3c06080e93c38a /src
parent3bfb7d7f04635f214a8c7db6744373364e9717db (diff)
downloadweechat-3aec35aeece3b25b458f7df73a7493d0f7e9a7c0.zip
relay/remote: set modes on buffer event
Diffstat (limited to 'src')
-rw-r--r--src/plugins/relay/api/remote/relay-remote-event.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/relay/api/remote/relay-remote-event.c b/src/plugins/relay/api/remote/relay-remote-event.c
index 110c610e0..90e775246 100644
--- a/src/plugins/relay/api/remote/relay-remote-event.c
+++ b/src/plugins/relay/api/remote/relay-remote-event.c
@@ -477,7 +477,7 @@ RELAY_REMOTE_EVENT_CALLBACK(buffer)
struct t_relay_remote_event event_line;
cJSON *json_obj, *json_keys, *json_key, *json_key_name, *json_key_command;
cJSON *json_lines, *json_line, *json_nicklist_root;
- const char *name, *short_name, *type, *title, *input_prompt, *input;
+ const char *name, *short_name, *type, *title, *modes, *input_prompt, *input;
const char *ptr_key, *ptr_command;
char *full_name, str_number[64], *property;
long long id;
@@ -493,6 +493,7 @@ RELAY_REMOTE_EVENT_CALLBACK(buffer)
JSON_GET_NUM(event->json, number, -1);
JSON_GET_STR(event->json, type);
JSON_GET_STR(event->json, title);
+ JSON_GET_STR(event->json, modes);
JSON_GET_STR(event->json, input_prompt);
JSON_GET_STR(event->json, input);
JSON_GET_NUM(event->json, input_position, 0);
@@ -513,6 +514,7 @@ RELAY_REMOTE_EVENT_CALLBACK(buffer)
weechat_hashtable_set (buffer_props, "type", type);
weechat_hashtable_set (buffer_props, "short_name", short_name);
weechat_hashtable_set (buffer_props, "title", title);
+ weechat_hashtable_set (buffer_props, "modes", modes);
weechat_hashtable_set (buffer_props, "input_prompt", input_prompt);
weechat_hashtable_set (buffer_props, "input", input);
snprintf (str_number, sizeof (str_number), "%d", input_position);