summary refs log tree commit diff
path: root/state.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-03-08 20:01:55 -0400
committerJune McEnroe <june@causal.agency>2020-03-08 20:01:55 -0400
commit6d588f69ecb574eeae61dd147132b7a84f26bc62 (patch)
tree77daf88279728c729f2276f3651f8c734c4da73d /state.c
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.
Diffstat (limited to 'state.c')
-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];
t if strace or cgit exit with an error status, which would cause a false positive test status in this case. Signed-off-by: John Keeping <john@keeping.me.uk> 2013-04-10cgit.c: Do not restore unset environment variablesLukas Fleischer getenv() returns a NULL pointer if the specified variable name cannot be found in the environment. However, some setenv() implementations crash if a NULL pointer is passed as second argument. Only restore variables that are not NULL. See commit d96d2c98ebc4c2d3765f5b35c4142e0e828a421b for a related patch. Signed-off-by: Lukas Fleischer <cgit@cryptocrack.de> 2013-04-09t0107: Use `tar -z` for gzip'ed archivesLukas Fleischer