]> gitweb.pimeys.fr Git - bots/hung.git/commitdiff
Encore et toujours l'utf8
authorVincent Le Gallic <legallic@crans.org>
Fri, 25 May 2012 00:03:53 +0000 (02:03 +0200)
committerVincent Le Gallic <legallic@crans.org>
Fri, 25 May 2012 00:03:53 +0000 (02:03 +0200)
hung.py

diff --git a/hung.py b/hung.py
index 99aa68a5752ebcf8eaee88c98a44b22e0064f227..6746f64f2d752a96d651c1c7a21814d0f2483f43 100755 (executable)
--- a/hung.py
+++ b/hung.py
@@ -437,7 +437,7 @@ class Hung(ircbot.SingleServerIRCBot):
     
     def mourir(self):
         quit_message=random.choice(config_quit_messages)
     
     def mourir(self):
         quit_message=random.choice(config_quit_messages)
-        self.die(msg=quit_message)
+        self.die(msg=quit_message.encode("utf8"))
     
     def get_scores(self):
         f=open(config_scores_file)
     
     def get_scores(self):
         f=open(config_scores_file)