]> jfr.im git - erebus.git/blobdiff - bot.py
Fixed bot.send() to work with unicode.
[erebus.git] / bot.py
diff --git a/bot.py b/bot.py
index 7a4cb378583eff9344dc464bc7b767e8fd8fdae9..2a4dd14e14c2cc5d0225d0d4e551baf0fbb55315 100644 (file)
--- a/bot.py
+++ b/bot.py
@@ -1,4 +1,5 @@
 #!/usr/bin/python
+# -*- coding: latin-1 -*-
 
 # Erebus IRC bot - Author: John Runyon
 # "Bot" and "BotConnection" classes (handling a specific "arm")
@@ -180,7 +181,7 @@ class BotConnection(object):
 
        #TODO: rewrite send() to queue
        def send(self, line):
-               print self.parent.nick, '[O]', line
+               print self.parent.nick, '[O]', str(line)
                self.write(line)
 
        def write(self, line):