From: Alexander van Gessel (AI0867) Date: Sun, 4 Nov 2012 01:38:10 +0000 (+0100) Subject: Configure irclib's line decoder to not fail on invalid utf-8 X-Git-Tag: 1.13~1 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=4726f8d19291ee75d6f03753b501f5a3efedd1a6;p=irker.git Configure irclib's line decoder to not fail on invalid utf-8 Signed-off-by: Eric S. Raymond --- 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()