forked from External/ergo
fix #1442
strip local_ from oper capab names, also consolidate unban into ban
This commit is contained in:
parent
8769e2d92a
commit
e195854851
7 changed files with 15 additions and 18 deletions
|
|
@ -649,7 +649,7 @@ type OperClass struct {
|
|||
// OperatorClasses returns a map of assembled operator classes from the given config.
|
||||
func (conf *Config) OperatorClasses() (map[string]*OperClass, error) {
|
||||
fixupCapability := func(capab string) string {
|
||||
return strings.TrimPrefix(capab, "oper:") // #868
|
||||
return strings.TrimPrefix(strings.TrimPrefix(capab, "oper:"), "local_") // #868, #1442
|
||||
}
|
||||
|
||||
ocs := make(map[string]*OperClass)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue