Browse Source

don't trigger auto-away if the client is already away

tags/v2.2.0
Shivaram Lingamneni 4 years ago
parent
commit
eaae3165f2
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      irc/client.go

+ 2
- 1
irc/client.go View File

@@ -1287,7 +1287,8 @@ func (client *Client) destroy(session *Session) {
1287 1287
 
1288 1288
 	autoAway := false
1289 1289
 	var awayMessage string
1290
-	if alwaysOn && remainingSessions == 0 && persistenceEnabled(config.Accounts.Multiclient.AutoAway, client.accountSettings.AutoAway) {
1290
+	if alwaysOn && !client.away && remainingSessions == 0 &&
1291
+		persistenceEnabled(config.Accounts.Multiclient.AutoAway, client.accountSettings.AutoAway) {
1291 1292
 		autoAway = true
1292 1293
 		client.autoAway = true
1293 1294
 		client.away = true

Loading…
Cancel
Save