1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-02 07:46:38 +02:00

relay/api: fix error displayed when buffer is not found in POST /api/input

This commit is contained in:
Sébastien Helleu
2024-03-09 15:40:50 +01:00
parent 80709292d4
commit 8c5db76271
+1 -1
View File
@@ -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;
}
}