forked from External/ergo
Stats for LUSERS logic now seperated, fixed params in LUSERS
This commit is contained in:
parent
19bb6d5a46
commit
744ad2ce0b
5 changed files with 94 additions and 14 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue