aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorC. McEnroe <june@causal.agency>2020-03-08 20:01:55 -0400
committerC. McEnroe <june@causal.agency>2020-03-08 20:01:55 -0400
commit6d588f69ecb574eeae61dd147132b7a84f26bc62 (patch)
tree77daf88279728c729f2276f3651f8c734c4da73d
parentUse one line for each CFLAGS addition (diff)
downloadpounce-6d588f69ecb574eeae61dd147132b7a84f26bc62.tar.gz
pounce-6d588f69ecb574eeae61dd147132b7a84f26bc62.zip
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.
-rw-r--r--state.c5
1 files changed, 5 insertions, 0 deletions
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];