Control: warn about unknown command

This commit is contained in:
Martin Pulec
2020-04-21 15:44:27 +02:00
parent 581d8a9309
commit 07309035a5
2 changed files with 24 additions and 22 deletions

View File

@@ -699,6 +699,7 @@ static void process_messages(struct control_state *s)
process_msg(s, 1, m->text + strlen("execute "), nullptr);
free_message(msg, new_response(RESPONSE_OK, nullptr));
} else {
log_msg(LOG_LEVEL_WARNING, "[control] Unrecognized command: %s\n", m->text);
free_message(msg, new_response(RESPONSE_NOT_IMPL, NULL));
continue;
}