summary refs log tree commit diff
path: root/server.c
diff options
context:
space:
mode:
Diffstat (limited to 'server.c')
-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);