diff options
author | June McEnroe <june@causal.agency> | 2020-03-08 20:01:55 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2020-03-08 20:01:55 -0400 |
commit | 6d588f69ecb574eeae61dd147132b7a84f26bc62 (patch) | |
tree | 77daf88279728c729f2276f3651f8c734c4da73d | |
parent | Use one line for each CFLAGS addition (diff) | |
download | pounce-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.
Diffstat (limited to '')
-rw-r--r-- | state.c | 5 |
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]; |