commit cdeb759

delthas  ·  2022-10-12 15:28:25 +0000 UTC
parent 7001394
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.
1 files changed,  +1, -0
+1, -0
1@@ -1530,6 +1530,7 @@ func (s *Session) updateFeatures(features []string) {
2 			if value == "" {
3 				s.prefixModes = ""
4 				s.prefixSymbols = ""
5+				break Switch
6 			}
7 			if len(value)%2 != 0 {
8 				break Switch