From 234ece0547f069cf761bc10262ed74c954e7fb6b Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Thu, 2 Sep 2021 21:54:53 -0400 Subject: Separate client QUIT and ERROR messages So each can be logged properly with its prefix. --- bounce.c | 6 ++---- 1 file 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); } -- cgit 1.4.1