mirror of
https://github.com/ergochat/ergo.git
synced 2024-11-10 22:19:31 +01:00
fix miscounting in LUSERS
This commit is contained in:
parent
2a7af89694
commit
a4546c418b
@ -765,11 +765,12 @@ func (client *Client) destroy(beingResumed bool) {
|
||||
|
||||
// send quit messages to friends
|
||||
if !beingResumed {
|
||||
client.server.stats.ChangeTotal(-1)
|
||||
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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user