]> gitweb.pimeys.fr Git - bots/basile.git/commitdiff
Connerie d'utf8 oublié dans on_action
authorVincent Le Gallic <legallic@crans.org>
Thu, 10 May 2012 17:50:17 +0000 (19:50 +0200)
committerVincent Le Gallic <legallic@crans.org>
Thu, 10 May 2012 17:50:17 +0000 (19:50 +0200)
basile.py

index c5234a1066a0e17d01f4f4ffdbe8e9980f0aa88f..1e985a06ddb21b652fdff1ab6753fecd959fc8b1 100755 (executable)
--- 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")))