diff options
author | June McEnroe <june@causal.agency> | 2021-08-21 14:49:07 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2021-08-21 14:49:07 -0400 |
commit | 0e3cdc19922c6ea0b3b63264b5362e1984e8b466 (patch) | |
tree | b57849e5ea9390a3e308edfea78c951604d83030 /client.c | |
parent | Replace verbose colors with two types of arrows (diff) | |
download | pounce-0e3cdc19922c6ea0b3b63264b5362e1984e8b466.tar.gz pounce-0e3cdc19922c6ea0b3b63264b5362e1984e8b466.zip |
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.
Diffstat (limited to '')
-rw-r--r-- | client.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } } |