From: Egor Date: Wed, 4 May 2022 08:40:28 +0000 (+0300) Subject: disable cap command X-Git-Url: https://git.patchysicp.xyz/?a=commitdiff_plain;h=0a8c8448eeb4a0d7e57b127de9731fb458b824ab;p=patchyircd.git disable cap command --- diff --git a/irc.c b/irc.c index 1a2f059..497409a 100644 --- a/irc.c +++ b/irc.c @@ -87,12 +87,16 @@ int processPacket(struct client_data *client) { if (!args[0]) // FIXME: error message return 0; stringupper(args[0]); + // don't enable CAP command until we actually have CAPs + // because clients can't handle NAKs +#if 0 if (strcmp(args[0], "LS") == 0) { // at least one client hangs if it doesn't see a known extension copy_strf(&databuf, ":%s CAP * LS :multi-prefix\n", hostname); send_log(client->FD, databuf.buf, databuf.len, 0); if (client->regstate != REG_CAPEND || !client->nick || !client->username) client->regstate = REG_CAPLS; + } else if (strcmp(args[0], "LIST") == 0) { copy_strf(&databuf, ":%s CAP * LIST :\n", hostname); send_log(client->FD, databuf.buf, databuf.len, 0); @@ -107,6 +111,7 @@ int processPacket(struct client_data *client) { } else { goto unknown; } +#endif } else if(strcmp(command, "NICK") == 0) { // User now registered if (!args[0]) // FIXME: error message