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

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