]> gitweb.pimeys.fr Git - bots/basile.git/commitdiff
Why U unicode ?
authorVincent Le Gallic <basile@crans.org>
Thu, 26 Sep 2013 12:49:01 +0000 (14:49 +0200)
committerVincent Le Gallic <basile@crans.org>
Thu, 26 Sep 2013 12:49:01 +0000 (14:49 +0200)
nk.py

diff --git a/nk.py b/nk.py
index 917a396c3ad0537d01d3b6f6e3ac448c9dd0f4e6..a9e8a5c9d923b11d27cbb596cdd9e9e015bf7a2d 100644 (file)
--- a/nk.py
+++ b/nk.py
@@ -97,7 +97,7 @@ def get_solde(sock, idbde, serv, canal):
             pseudo = ret["msg"]["pseudo"]
             return (True, solde, pseudo)
         else:
-            serv.privmsg(canal, ret["errmsg"])
+            serv.privmsg(canal, ret["errmsg"].encode("utf-8"))
             return (False, None, None)
     except Exception as exc:
         trace = traceback.format_exc()