mirror of
https://github.com/ergochat/ergo.git
synced 2024-11-29 23:49:25 +01:00
fix #362
This commit is contained in:
parent
585a6557a4
commit
18aecfeed0
@ -1034,7 +1034,7 @@ func (client *Client) destroy(beingResumed bool, session *Session) {
|
|||||||
|
|
||||||
// send quit messages to friends
|
// send quit messages to friends
|
||||||
if !beingResumed {
|
if !beingResumed {
|
||||||
if client.Registered() {
|
if registered {
|
||||||
client.server.stats.ChangeTotal(-1)
|
client.server.stats.ChangeTotal(-1)
|
||||||
}
|
}
|
||||||
if client.HasMode(modes.Invisible) {
|
if client.HasMode(modes.Invisible) {
|
||||||
@ -1054,7 +1054,7 @@ func (client *Client) destroy(beingResumed bool, session *Session) {
|
|||||||
if !client.exitedSnomaskSent {
|
if !client.exitedSnomaskSent {
|
||||||
if beingResumed {
|
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))
|
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))
|
client.server.snomasks.Send(sno.LocalQuits, fmt.Sprintf(ircfmt.Unescape("%s$r exited the network"), details.nick))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user