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);
} else {
goto unknown;
}
+#endif
} else if(strcmp(command, "NICK") == 0) {
// User now registered
if (!args[0]) // FIXME: error message