Ignore 422 ERR_NOMOTD

pounce will start sending these because some silly clients don't think
they're connected until some MOTD reply...
master
C. McEnroe 2020-03-09 03:08:59 -04:00
parent 7e120f00a1
commit 2f53f75892
1 changed files with 5 additions and 0 deletions

View File

@ -272,6 +272,10 @@ static void handleReplyMOTD(struct Message *msg) {
}
}
static void handleErrorNoMOTD(struct Message *msg) {
(void)msg;
}
static void handleJoin(struct Message *msg) {
require(msg, true, 1);
uint id = idFor(msg->params[0]);
@ -984,6 +988,7 @@ static const struct Handler {
{ "372", handleReplyMOTD },
{ "378", handleReplyWhoisGeneric },
{ "379", handleReplyWhoisGeneric },
{ "422", handleErrorNoMOTD },
{ "432", handleErrorErroneousNickname },
{ "433", handleErrorNicknameInUse },
{ "441", handleErrorUserNotInChannel },