diff --git a/bot.py b/bot.py index b3b1467..adab7bf 100755 --- a/bot.py +++ b/bot.py @@ -616,6 +616,13 @@ class Fulvia(irc.IRCClient): self.whoisIdle(nick, idle, signon) + def lineReceived(self, line): + """Overridden to fix broken unicode issues.""" + if bytes != str and isinstance(line, bytes): + line = line.decode('utf-8', errors='surrogateescape') + super().lineReceived(line) + + class FulviaWrapper(): """ A wrapper class for Fulvia to provide default destinations for msg