mirror of
https://github.com/ergochat/ergo.git
synced 2025-12-20 02:00:11 -08:00
USERHOST needs to respect hidden operators as well
This commit is contained in:
parent
f5374c014b
commit
4ee97ddb43
3 changed files with 20 additions and 10 deletions
|
|
@ -728,11 +728,6 @@ type Oper struct {
|
|||
Modes []modes.ModeChange
|
||||
}
|
||||
|
||||
// returns whether this is a publicly visible operator, for WHO/WHOIS purposes
|
||||
func (oper *Oper) Visible(hasPrivs bool) bool {
|
||||
return oper != nil && (hasPrivs || !oper.Hidden)
|
||||
}
|
||||
|
||||
// Operators returns a map of operator configs from the given OperClass and config.
|
||||
func (conf *Config) Operators(oc map[string]*OperClass) (map[string]*Oper, error) {
|
||||
operators := make(map[string]*Oper)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue