From: Vincent Le Gallic Date: Tue, 15 May 2012 21:42:02 +0000 (+0200) Subject: Encore un foirage d'encodage =p X-Git-Url: http://gitweb.pimeys.fr/?a=commitdiff_plain;h=400cc614848edb28752023ff4ca3922fcb7062e9;p=bots%2Fbasile.git Encore un foirage d'encodage =p --- diff --git a/basile.py b/basile.py index 10433cc..aaa2dd9 100755 --- a/basile.py +++ b/basile.py @@ -758,7 +758,7 @@ class Basile(ircbot.SingleServerIRCBot): n1,n2=len(l1),len(l2) i=random.randrange(n1+n2) if i>=n1: - serv.action(canal,l2[i-n1]) + serv.action(canal,l2[i-n1].encode("utf8")) else: serv.privmsg(canal,"%s: %s"%(auteur,l1[i].encode("utf8"))) if is_tamere(message) and not canal in self.quiet_channels: