]> gitweb.pimeys.fr Git - bots/basile.git/commitdiff
Encore de l'unicode
authorVincent Le Gallic <legallic@crans.org>
Sun, 25 May 2014 00:14:38 +0000 (02:14 +0200)
committerVincent Le Gallic <legallic@crans.org>
Sun, 25 May 2014 00:14:38 +0000 (02:14 +0200)
basile.py

index a21e79256f732535a79d1f2dc1c04663c4b812dc..d172dbe8a0dbd874acf999fca2a9cca8960c10df 100755 (executable)
--- a/basile.py
+++ b/basile.py
@@ -304,7 +304,7 @@ class Basile(ircbot.SingleServerIRCBot):
             if auteur in self.ops:
                 if len(message) > 1:
                     if message[1] in self.chanlist:
-                        serv.privmsg(auteur, "Je suis déjà sur %s" % (message[1]))
+                        serv.privmsg(auteur, (u"Je suis déjà sur %s" % (message[1])).encode("utf-8"))
                     else:
                         serv.join(message[1])
                         self.chanlist.append(message[1])