From 0e3cdc19922c6ea0b3b63264b5362e1984e8b466 Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Sat, 21 Aug 2021 14:49:07 -0400 Subject: Avoid overwriting manual AWAY messages Setting an AWAY message then disconnecting will no longer replace the AWAY message with the default one. Reconnecting continues to always clear AWAY. --- client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'client.c') diff --git a/client.c b/client.c index 938ab8b..ed2e0d3 100644 --- a/client.c +++ b/client.c @@ -76,7 +76,7 @@ static void clientHandshake(struct Client *client) { void clientFree(struct Client *client) { if (!client->need) { - if (!(client->caps & CapPassive) && !--active) { + if (!(client->caps & CapPassive) && !--active && !stateAway) { serverEnqueue("AWAY :%s\r\n", clientAway); } } -- cgit 1.4.1