diff options
author | June McEnroe <june@causal.agency> | 2021-09-02 21:54:53 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2021-09-02 21:54:53 -0400 |
commit | 234ece0547f069cf761bc10262ed74c954e7fb6b (patch) | |
tree | afe48b38f13cad18c79244182365cffccd2d7944 | |
parent | Remove redundant clientDiff function (diff) | |
download | pounce-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.c | 6 |
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); } |