From 4726f8d19291ee75d6f03753b501f5a3efedd1a6 Mon Sep 17 00:00:00 2001 From: "Alexander van Gessel (AI0867)" Date: Sun, 4 Nov 2012 02:38:10 +0100 Subject: [PATCH] Configure irclib's line decoder to not fail on invalid utf-8 Signed-off-by: Eric S. Raymond --- irkerd | 2 ++ 1 file changed, 2 insertions(+) diff --git a/irkerd b/irkerd index 2aefe14..4aa9d8a 100755 --- a/irkerd +++ b/irkerd @@ -214,6 +214,8 @@ class Connection: nickname=self.nickname(), username="irker", ircname="irker relaying client") + if hasattr(self.connection, "buffer"): + self.connection.buffer.errors = 'replace' self.status = "handshaking" self.irker.debug(1, "XMIT_TTL bump (%s connection) at %s" % (self.servername, time.asctime())) self.last_xmit = time.time() -- 2.26.2