3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-12-23 19:22:41 +01:00
Fix a panic if the operator class title is empty
This commit is contained in:
Shivaram Lingamneni 2021-06-28 01:45:13 -04:00
parent 20aa8efe56
commit b68696eb9b

View File

@ -747,6 +747,9 @@ func (conf *Config) OperatorClasses() (map[string]*OperClass, error) {
// add our own info // add our own info
oc.Title = info.Title oc.Title = info.Title
if oc.Title == "" {
oc.Title = "IRC operator"
}
for _, capab := range info.Capabilities { for _, capab := range info.Capabilities {
oc.Capabilities.Add(fixupCapability(capab)) oc.Capabilities.Add(fixupCapability(capab))
} }