diff --git a/src/ReceiveCommands.cc b/src/ReceiveCommands.cc index 0ee3266b..7f554e6e 100644 --- a/src/ReceiveCommands.cc +++ b/src/ReceiveCommands.cc @@ -481,7 +481,13 @@ static asio::awaitable send_auto_patches_if_needed(shared_ptr c) { } } - co_await send_function_call_multi(c, functions_to_send); + if (!functions_to_send.empty()) { + if (c->check_flag(Client::Flag::SEND_FUNCTION_CALL_ACTUALLY_RUNS_CODE)) { + co_await send_function_call_multi(c, functions_to_send); + } else { + c->log.warning_f("Skipping {} auto patch function calls because this client only supports checksum-mode send_function_call", functions_to_send.size()); + } + } } }