1
0
Fork 0
forked from External/ergo
Transition most "is an operator" checks to require a specific operator
capability
This commit is contained in:
Shivaram Lingamneni 2021-02-06 22:45:34 -05:00
parent 4c08bc9c49
commit 42316bc04f
11 changed files with 59 additions and 65 deletions

View file

@ -1512,7 +1512,7 @@ func (client *Client) destroy(session *Session) {
// decrement stats if we have no more sessions, even if the client will not be destroyed
if shouldDecrement {
invisible := client.HasMode(modes.Invisible)
operator := client.HasMode(modes.LocalOperator) || client.HasMode(modes.Operator)
operator := client.HasMode(modes.Operator)
client.server.stats.Remove(registered, invisible, operator)
}