diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2024-03-09 15:40:50 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2024-03-12 20:37:48 +0100 |
commit | 8c5db76271a7ca7f4cf39e1910bb23f88cad704e (patch) | |
tree | 2375f42a048a16f18caf3c499d3519c9950759f5 /src/plugins/relay | |
parent | 80709292d406dd7044b7b642364cb486df96fb9c (diff) | |
download | weechat-8c5db76271a7ca7f4cf39e1910bb23f88cad704e.zip |
relay/api: fix error displayed when buffer is not found in POST /api/input
Diffstat (limited to 'src/plugins/relay')
-rw-r--r-- | src/plugins/relay/api/relay-api-protocol.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/relay/api/relay-api-protocol.c b/src/plugins/relay/api/relay-api-protocol.c index bddf9c833..6f75b96f8 100644 --- a/src/plugins/relay/api/relay-api-protocol.c +++ b/src/plugins/relay/api/relay-api-protocol.c @@ -475,11 +475,11 @@ RELAY_API_PROTOCOL_CALLBACK(input) ptr_buffer = weechat_buffer_search ("==", ptr_buffer_name); if (!ptr_buffer) { - cJSON_Delete (json_body); relay_api_msg_send_error_json (client, RELAY_HTTP_404_NOT_FOUND, NULL, "Buffer \"%s\" not found", ptr_buffer_name); + cJSON_Delete (json_body); return WEECHAT_RC_OK; } } |