summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-10-26 20:20:30 -0400
committerJune McEnroe <june@causal.agency>2019-10-26 20:20:30 -0400
commit3a3ebb32578b3f0189b3d048c98db8bd71208153 (patch)
tree37a402c95cb934359a781de5a0d49c18b5bf26c2
parentAdd undocumented flag to disable verification (diff)
downloadpounce-3a3ebb32578b3f0189b3d048c98db8bd71208153.tar.gz
pounce-3a3ebb32578b3f0189b3d048c98db8bd71208153.zip
Respond to PING with same parameter
Diffstat (limited to '')
-rw-r--r--server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/server.c b/server.c
index 19d5aca..3dec684 100644
--- a/server.c
+++ b/server.c
@@ -186,7 +186,7 @@ void serverRecv(void) {
 		crlf[0] = '\0';
 		if (verbose) fprintf(stderr, "\x1B[32m%s\x1B[m\n", line);
 		if (!strncmp(line, "PING ", 5)) {
-			serverFormat("PONG :irc.invalid\r\n");
+			serverFormat("PONG %s\r\n", &line[5]);
 		} else {
 			if (stateReady()) ringProduce(line);
 			stateParse(line);