]> PatchyGit - patchyircd.git/commitdiff
don't kick when command is empty
authorEgor <egor@patchysicp.xyz>
Mon, 2 May 2022 19:54:31 +0000 (22:54 +0300)
committerEgor <egor@patchysicp.xyz>
Mon, 2 May 2022 19:54:31 +0000 (22:54 +0300)
irc.c

diff --git a/irc.c b/irc.c
index 586926f..e045c96 100644 (file)
--- 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';
                }