mirror of
https://github.com/ergochat/ergo.git
synced 2025-12-20 10:10:08 -08:00
commit
eeb5f9b24d
1 changed files with 4 additions and 0 deletions
|
|
@ -162,6 +162,8 @@ func (ps *PersistentStatus) UnmarshalYAML(unmarshal func(interface{}) error) err
|
||||||
result = PersistentDisabled
|
result = PersistentDisabled
|
||||||
}
|
}
|
||||||
*ps = result
|
*ps = result
|
||||||
|
} else {
|
||||||
|
err = fmt.Errorf("invalid value `%s` for server persistence status: %w", orig, err)
|
||||||
}
|
}
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
@ -416,6 +418,8 @@ func (nr *NickEnforcementMethod) UnmarshalYAML(unmarshal func(interface{}) error
|
||||||
method, err := nickReservationFromString(orig)
|
method, err := nickReservationFromString(orig)
|
||||||
if err == nil {
|
if err == nil {
|
||||||
*nr = method
|
*nr = method
|
||||||
|
} else {
|
||||||
|
err = fmt.Errorf("invalid value `%s` for nick enforcement method: %w", orig, err)
|
||||||
}
|
}
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue