From 37787dfcf61cca2485082080df7c4e3739d8eb75 Mon Sep 17 00:00:00 2001 From: Egor Date: Mon, 2 May 2022 22:54:31 +0300 Subject: [PATCH] don't kick when command is empty --- irc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/irc.c b/irc.c index 586926f..e045c96 100644 --- a/irc.c +++ b/irc.c @@ -28,8 +28,7 @@ int processPacket(struct client_data *client) { while (*p != ' ' && *p != '\n') p++; if (*p++ == '\n') { - killConnection(client, true); - return 1; // no command + return 0; // no command } p[-1] = '\0'; } -- 2.56.0