summary refs log tree commit diff
path: root/bounce.c
diff options
context:
space:
mode:
Diffstat (limited to 'bounce.c')
-rw-r--r--bounce.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/bounce.c b/bounce.c
index 18b205e..b89e90a 100644
--- a/bounce.c
+++ b/bounce.c
@@ -284,7 +284,10 @@ int main(int argc, char *argv[]) {
 	serverFormat("QUIT :%s\r\n", quit);
 	for (size_t i = 0; i < event.len; ++i) {
 		if (event.clients[i]) {
-			clientFormat(event.clients[i], "ERROR :Disconnecting\r\n");
+			clientFormat(
+				event.clients[i], ":%s QUIT :%s\r\nERROR :Disconnecting\r\n",
+				stateEcho(), quit
+			);
 			clientFree(event.clients[i]);
 		}
 		close(event.fds[i].fd);