summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2021-09-02 21:54:53 -0400
committerJune McEnroe <june@causal.agency>2021-09-02 21:54:53 -0400
commit234ece0547f069cf761bc10262ed74c954e7fb6b (patch)
treeafe48b38f13cad18c79244182365cffccd2d7944
parentRemove redundant clientDiff function (diff)
downloadpounce-234ece0547f069cf761bc10262ed74c954e7fb6b.tar.gz
pounce-234ece0547f069cf761bc10262ed74c954e7fb6b.zip
Separate client QUIT and ERROR messages
So each can be logged properly with its prefix.
-rw-r--r--bounce.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/bounce.c b/bounce.c
index e113cc6..71433ee 100644
--- a/bounce.c
+++ b/bounce.c
@@ -567,10 +567,8 @@ int main(int argc, char *argv[]) {
 	for (size_t i = clientIndex; i < event.len; ++i) {
 		struct Client *client = event.clients[i];
 		if (!client->need) {
-			clientFormat(
-				client, ":%s QUIT :%s\r\nERROR :Disconnecting\r\n",
-				stateEcho(), quit
-			);
+			clientFormat(client, ":%s QUIT :%s\r\n", stateEcho(), quit);
+			clientFormat(client, "ERROR :Disconnecting\r\n");
 		}
 		clientFree(client);
 	}