fix miscounting in LUSERS

This commit is contained in:
Shivaram Lingamneni 2018-08-08 17:56:12 -04:00
parent 2a7af89694
commit a4546c418b
1 changed files with 3 additions and 2 deletions

View File

@ -765,11 +765,12 @@ func (client *Client) destroy(beingResumed bool) {
// send quit messages to friends
if !beingResumed {
if client.Registered() {
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)
}