From 6efb59b8b72221078f92b4e6bff9cbd6ed9d98cf Mon Sep 17 00:00:00 2001 From: James Lu Date: Mon, 20 Jul 2015 21:19:01 -0700 Subject: [PATCH] Irc: strip off \r from lines --- main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/main.py b/main.py index 7fc63eb..63f3c92 100755 --- a/main.py +++ b/main.py @@ -124,6 +124,7 @@ class Irc(): break while b'\n' in buf: line, buf = buf.split(b'\n', 1) + line = line.strip(b'\r') line = line.decode("utf-8") log.debug("(%s) <- %s", self.name, line) hook_args = self.proto.handle_events(self, line)