Skip to content

Commit

Permalink
relay/remote: set input multiline on buffer event
Browse files Browse the repository at this point in the history
  • Loading branch information
flashcode committed May 7, 2024
1 parent 92dfd24 commit 4d0458a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/plugins/relay/api/remote/relay-remote-event.c
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ RELAY_REMOTE_EVENT_CALLBACK(buffer)
char *full_name, str_number[64], *property;
long long id;
int number, nicklist, nicklist_case_sensitive, nicklist_display_groups;
int apply_props, input_position;
int apply_props, input_position, input_multiline;

if (!event->json)
return WEECHAT_RC_OK;
Expand All @@ -495,6 +495,7 @@ RELAY_REMOTE_EVENT_CALLBACK(buffer)
JSON_GET_STR(event->json, title);
JSON_GET_STR(event->json, input);
JSON_GET_NUM(event->json, input_position, 0);
JSON_GET_BOOL(event->json, input_multiline);
JSON_GET_BOOL(event->json, nicklist);
JSON_GET_BOOL(event->json, nicklist_case_sensitive);
JSON_GET_BOOL(event->json, nicklist_display_groups);
Expand All @@ -514,6 +515,8 @@ RELAY_REMOTE_EVENT_CALLBACK(buffer)
weechat_hashtable_set (buffer_props, "input", input);
snprintf (str_number, sizeof (str_number), "%d", input_position);
weechat_hashtable_set (buffer_props, "input_pos", str_number);
weechat_hashtable_set (buffer_props, "input_multiline",
(input_multiline) ? "1" : "0");
weechat_hashtable_set (buffer_props, "nicklist", (nicklist) ? "1" : "0");
weechat_hashtable_set (buffer_props, "nicklist_case_sensitive",
(nicklist_case_sensitive) ? "1" : "0");
Expand Down

0 comments on commit 4d0458a

Please sign in to comment.