]> gitweb.pimeys.fr Git - bots/basile.git/commitdiff
Encore un foirage d'encodage =p
authorVincent Le Gallic <basile@crans.org>
Tue, 15 May 2012 21:42:02 +0000 (23:42 +0200)
committerVincent Le Gallic <basile@crans.org>
Tue, 15 May 2012 21:42:02 +0000 (23:42 +0200)
basile.py

index 10433ccfe39a2abe54db1dd83863c27c85becc73..aaa2dd9632398a57dec14333f8754cd81a4fdbc8 100755 (executable)
--- 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: