3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-11-10 22:19:31 +01:00

Merge pull request #287 from slingamn/lusers

fix miscounting in LUSERS
This commit is contained in:
Daniel Oaks 2018-08-09 10:35:38 +10:00 committed by GitHub
commit 5cb7c9ae7b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -765,11 +765,12 @@ func (client *Client) destroy(beingResumed bool) {
// send quit messages to friends // send quit messages to friends
if !beingResumed { if !beingResumed {
if client.Registered() {
client.server.stats.ChangeTotal(-1) client.server.stats.ChangeTotal(-1)
}
if client.HasMode(modes.Invisible) { if client.HasMode(modes.Invisible) {
client.server.stats.ChangeInvisible(-1) client.server.stats.ChangeInvisible(-1)
} }
if client.HasMode(modes.Operator) || client.HasMode(modes.LocalOperator) { if client.HasMode(modes.Operator) || client.HasMode(modes.LocalOperator) {
client.server.stats.ChangeOperators(-1) client.server.stats.ChangeOperators(-1)
} }