3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-12-26 20:52:38 +01:00
This commit is contained in:
Shivaram Lingamneni 2019-05-12 03:20:31 -04:00
parent 585a6557a4
commit 18aecfeed0

View File

@ -1034,7 +1034,7 @@ func (client *Client) destroy(beingResumed bool, session *Session) {
// send quit messages to friends
if !beingResumed {
if client.Registered() {
if registered {
client.server.stats.ChangeTotal(-1)
}
if client.HasMode(modes.Invisible) {
@ -1054,7 +1054,7 @@ func (client *Client) destroy(beingResumed bool, session *Session) {
if !client.exitedSnomaskSent {
if beingResumed {
client.server.snomasks.Send(sno.LocalQuits, fmt.Sprintf(ircfmt.Unescape("%s$r is resuming their connection, old client has been destroyed"), client.nick))
} else {
} else if registered {
client.server.snomasks.Send(sno.LocalQuits, fmt.Sprintf(ircfmt.Unescape("%s$r exited the network"), details.nick))
}
}