]> gitweb.pimeys.fr Git - bots/basile.git/commitdiff
Merge branch 'master' of ssh://cerebro.crans.org/git/Basile
authorVincent Le Gallic <legallic@crans.org>
Thu, 17 May 2012 22:11:03 +0000 (00:11 +0200)
committerVincent Le Gallic <legallic@crans.org>
Thu, 17 May 2012 22:11:03 +0000 (00:11 +0200)
basile.py

index 88afebc0acd6c14b565d130c42fbd18505f091e3..9b50b1a9593a196d4477bf4cc0d23ba60fe58b0c 100755 (executable)
--- a/basile.py
+++ b/basile.py
@@ -757,7 +757,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: