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);
/daemon.h?h=1.1&id=b7e36c72a604796209f7f7b11d88aa3b75c1b44f&follow=1'>Parse control commandsJune McEnroe 2020-08-15Read service pipesJune McEnroe Changed line reading functions to return const char * because modifying the strings by adding '\0' into them screws up the following call. 2020-08-15Implement non-blocking line-buffered readingJune McEnroe 2020-08-15Generate tags fileJune McEnroe 2020-08-15Just use CLOCK_MONOTONIC and clean up includesJune McEnroe CLOCK_MONOTONIC exists everywhere. 2020-08-15Reap childrenJune McEnroe 2020-08-14Implement serviceSignal, serviceStop, serviceRestartJune McEnroe 2020-08-14Reset restartInterval and restartDeadline on startJune McEnroe 2020-08-14Switch to timespec for timeoutsJune McEnroe Can be passed to ppoll(2) directly. 2020-08-14Implement serviceStartJune McEnroe 2020-08-14Flesh out Service structJune McEnroe 2020-08-14Build environment for servicesJune McEnroe 2020-08-14Implement spawntab parsingJune McEnroe 2020-08-14Open syslog, daemonize, write PIDJune McEnroe 2020-08-14Implement user and group lookupJune McEnroe 2020-08-14Add install targetJune McEnroe 2020-08-14Add spawnd skeletonJune McEnroe