mirror of
https://github.com/ergochat/ergo.git
synced 2025-02-18 06:30:39 +01:00
don't trigger auto-away if the client is already away
This commit is contained in:
parent
6916dbeae0
commit
eaae3165f2
@ -1287,7 +1287,8 @@ func (client *Client) destroy(session *Session) {
|
|||||||
|
|
||||||
autoAway := false
|
autoAway := false
|
||||||
var awayMessage string
|
var awayMessage string
|
||||||
if alwaysOn && remainingSessions == 0 && persistenceEnabled(config.Accounts.Multiclient.AutoAway, client.accountSettings.AutoAway) {
|
if alwaysOn && !client.away && remainingSessions == 0 &&
|
||||||
|
persistenceEnabled(config.Accounts.Multiclient.AutoAway, client.accountSettings.AutoAway) {
|
||||||
autoAway = true
|
autoAway = true
|
||||||
client.autoAway = true
|
client.autoAway = true
|
||||||
client.away = true
|
client.away = true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user