From 6d588f69ecb574eeae61dd147132b7a84f26bc62 Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Sun, 8 Mar 2020 20:01:55 -0400 Subject: Send ERR_NOMOTD during sync Some clients (Revolution) mistakenly believe they are not connected until a MOTD has been received. Sending this is harmless, I guess. --- state.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/state.c b/state.c index dc69547..5da5bcc 100644 --- a/state.c +++ b/state.c @@ -397,6 +397,11 @@ void stateSync(struct Client *client) { clientFormat(client, " :are supported by this server\r\n"); } + clientFormat( + client, ":%s 422 %s :MOTD File is missing\r\n", + ORIGIN, self.nick + ); + if (chans.len) assert(self.origin); for (size_t i = 0; i < chans.len; ++i) { const struct Channel *chan = &chans.ptr[i]; -- cgit 1.4.1