about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-10-26 01:41:03 -0400
committerJune McEnroe <june@causal.agency>2019-10-26 01:41:03 -0400
commit2cbee2917676bab76491ccd91c846d1f02043e34 (patch)
tree2a701a1eb5ac74dc9d3d96a4c2f1ddd50f38d67d
parentDisconnect client on unknown command (diff)
downloadpounce-2cbee2917676bab76491ccd91c846d1f02043e34.tar.gz
pounce-2cbee2917676bab76491ccd91c846d1f02043e34.zip
Oops
Diffstat (limited to '')
-rw-r--r--client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/client.c b/client.c
index 703a698..f7fff33 100644
--- a/client.c
+++ b/client.c
@@ -202,7 +202,7 @@ static void clientParse(struct Client *client, char *line) {
 	for (size_t i = 0; i < ARRAY_LEN(Handlers); ++i) {
 		if (strcmp(msg.cmd, Handlers[i].cmd)) continue;
 		Handlers[i].fn(client, &msg);
-		break;
+		return;
 	}
 	client->error = true;
 }