From d164f881c4ab8c5a1ff0df5e3e9df665da2a83d2 Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Tue, 15 Feb 2011 23:37:09 +0100 Subject: Call str.encode() in gitmsg(). --- gitnoti.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitnoti.py b/gitnoti.py index 8114741..3bce874 100755 --- a/gitnoti.py +++ b/gitnoti.py @@ -218,7 +218,7 @@ class Bot(irc.IRCClient): repos[fullpath] = NotifyRepo(self, fullpath) def gitmsg(self, msg): - self.say(options.channel, msg) + self.say(options.channel, msg.encode('utf-8')) def signedOn(self): self.join(options.channel) -- cgit v1.2.3