diff options
author | delthas <delthas@dille.cc> | 2022-10-12 17:28:25 +0200 |
---|---|---|
committer | delthas <delthas@dille.cc> | 2022-10-12 17:28:25 +0200 |
commit | cdeb75976c5313b95c9dfd219d14a718fb5194aa (patch) | |
tree | 14f9fafa52264892ecdbf418f0ae7531f2e5415f | |
parent | Replace 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.go | 1 |
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 |