From: Vincent Le Gallic Date: Thu, 10 May 2012 17:50:17 +0000 (+0200) Subject: Connerie d'utf8 oubliƩ dans on_action X-Git-Url: http://gitweb.pimeys.fr/?p=bots%2Fbasile.git;a=commitdiff_plain;h=683b9ed47d1e28c387822a17cc14edbb681361bc Connerie d'utf8 oubliƩ dans on_action --- diff --git a/basile.py b/basile.py index c5234a1..1e985a0 100755 --- a/basile.py +++ b/basile.py @@ -831,7 +831,7 @@ class Basile(ircbot.SingleServerIRCBot): n1,n2=len(l1),len(l2) i=random.randrange(n1+n2) if i>=n1: - serv.action(channel,l2[i-n1]) + serv.action(channel,l2[i-n1].encode("utf8")) else: serv.privmsg(channel,"%s: %s"%(auteur,l1[i].encode("utf8")))