summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordelthas <delthas@dille.cc>2022-10-12 17:28:25 +0200
committerdelthas <delthas@dille.cc>2022-10-12 17:28:25 +0200
commitcdeb75976c5313b95c9dfd219d14a718fb5194aa (patch)
tree14f9fafa52264892ecdbf418f0ae7531f2e5415f
parentReplace non-UTF8 chars with the Unicode replacement character (diff)
Fix crashing on ISUPPORT PREFIX=
On servers without prefixes, we previously crashed because of a missing break. The intended logic was to only process the string if it was not empty.
-rw-r--r--irc/session.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/irc/session.go b/irc/session.go
index 3a6d4e1..63de30f 100644
--- a/irc/session.go
+++ b/irc/session.go
@@ -1530,6 +1530,7 @@ func (s *Session) updateFeatures(features []string) {
if value == "" {
s.prefixModes = ""
s.prefixSymbols = ""
+ break Switch
}
if len(value)%2 != 0 {
break Switch