commit 2132570

delthas  ·  2025-12-04 12:03:08 +0000 UTC
parent ecc63d2
Fix broken connection to UnrealIRCd

See: https://bugs.unrealircd.org/view.php?id=6598
1 files changed,  +2, -0
+2, -0
1@@ -31,6 +31,8 @@ func ChanInOut(conn net.Conn) (in <-chan Message, out chan<- Message) {
2 		for r.Scan() {
3 			line := r.Text()
4 			line = strings.ToValidUTF8(line, string([]rune{unicode.ReplacementChar}))
5+			// Workaround for https://bugs.unrealircd.org/view.php?id=6598
6+			line = strings.TrimSuffix(line, "\r")
7 			msg, err := ParseMessage(line)
8 			if err != nil {
9 				continue