]> PatchyGit - patchyircd.git/commitdiff
send error on CAP
authorEgor <egor@patchysicp.xyz>
Wed, 11 May 2022 09:35:25 +0000 (12:35 +0300)
committerEgor <egor@patchysicp.xyz>
Wed, 11 May 2022 09:35:25 +0000 (12:35 +0300)
We went full circle. Some clients hang if they don't get response from
CAP.

irc.c

diff --git a/irc.c b/irc.c
index 5664232..62668f7 100644 (file)
--- a/irc.c
+++ b/irc.c
@@ -167,6 +167,7 @@ int processPacket(struct client_data *client, char *source, char *command, int a
                stringupper(args[0]);
                // don't enable CAP command until we actually have CAPs
                // because clients can't handle NAKs
+               goto unknown;
 #if 0
                if (strcmp(args[0], "LS") == 0) {
                        // at least one client hangs if it doesn't see a known extension