mirror of
https://github.com/jeremyd/ergo.git
synced 2026-07-22 23:28:10 -07:00
fix #1176
Transition most "is an operator" checks to require a specific operator capability
This commit is contained in:
+1
-1
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user