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

relay/api: fix return code when buffer is not found in completion resource callback

This commit is contained in:
Sébastien Helleu
2025-01-07 07:12:37 +01:00
parent c48dee3211
commit 10b4fffaca
+2 -2
View File
@@ -860,7 +860,7 @@ RELAY_API_PROTOCOL_CALLBACK(completion)
"Buffer \"%lld\" not found",
(long long)cJSON_GetNumberValue (json_buffer_id));
cJSON_Delete (json_body);
return RELAY_API_PROTOCOL_RC_BAD_REQUEST;
return RELAY_API_PROTOCOL_RC_OK;
}
}
}
@@ -881,7 +881,7 @@ RELAY_API_PROTOCOL_CALLBACK(completion)
"Buffer \"%s\" not found",
ptr_buffer_name);
cJSON_Delete (json_body);
return RELAY_API_PROTOCOL_RC_BAD_REQUEST;
return RELAY_API_PROTOCOL_RC_OK;
}
}
}