1
0
Fork 0
forked from External/ergo

Stats for LUSERS logic now seperated, fixed params in LUSERS

This commit is contained in:
moocow 2018-04-20 22:48:15 +02:00
parent 19bb6d5a46
commit 744ad2ce0b
5 changed files with 94 additions and 14 deletions

View file

@ -724,6 +724,15 @@ func (client *Client) destroy(beingResumed bool) {
// send quit messages to friends
if !beingResumed {
client.server.stats.ChangeTotal(-1)
if client.HasMode(modes.Invisible) {
client.server.stats.ChangeInvisible(-1)
}
if client.HasMode(modes.Operator) || client.HasMode(modes.LocalOperator) {
client.server.stats.ChangeOperators(-1)
}
for friend := range friends {
if client.quitMessage == "" {
client.quitMessage = "Exited"