From b68696eb9bea4dd40ad6e6bfff9569b8225759bb Mon Sep 17 00:00:00 2001 From: Shivaram Lingamneni Date: Mon, 28 Jun 2021 01:45:13 -0400 Subject: [PATCH] fix #1714 Fix a panic if the operator class title is empty --- irc/config.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/irc/config.go b/irc/config.go index ebc5cc18..7bcd28f2 100644 --- a/irc/config.go +++ b/irc/config.go @@ -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)) }