From 809b401c37e2fb8a3087244bd9cae711769c0474 Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Sat, 26 Oct 2019 01:23:04 -0400 Subject: Disconnect client on unknown command During registration, no other commands should be sent. Afterwards, only intercepted commands will get parsed. --- client.c | 1 + 1 file changed, 1 insertion(+) (limited to 'client.c') diff --git a/client.c b/client.c index 28b9903..703a698 100644 --- a/client.c +++ b/client.c @@ -204,6 +204,7 @@ static void clientParse(struct Client *client, char *line) { Handlers[i].fn(client, &msg); break; } + client->error = true; } static bool intercept(const char *line, size_t len) { -- cgit 1.4.1