787d2e122775 — Steve Fink 5 years ago
Encode to utf-8 in sendLine, which appears to be called back from the irc code
1 files changed, 1 insertions(+), 1 deletions(-)

M mrgiggles.py
M mrgiggles.py +1 -1
@@ 262,7 262,7 @@ class CustomIRCBotProtocol(irc.IRCClient
             log.msg("BATCH< " + line)
             print >>self.batchOut, line
         else:
-            irc.IRCClient.sendLine(self, line)
+            irc.IRCClient.sendLine(self, line.encode('utf-8'))
 
     def debug(self, message):
         if DEBUG_CHANNEL and not self.batchOut: