From d0bd8172e1d1b36f945a1217bd8058cad8f9bdb0 Mon Sep 17 00:00:00 2001 From: Vincent Le Gallic Date: Mon, 17 Jun 2013 14:17:26 +0200 Subject: [PATCH] Message d'erreur venant de NK2015 en unicode --- nk.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nk.py b/nk.py index 0cbaed0..917a396 100644 --- a/nk.py +++ b/nk.py @@ -125,7 +125,7 @@ def consomme(sock, idbde, conso, serv, canal): if ret["retcode"] == 0: [[retcode, [idbouton, idbde], errmsg]] = ret["msg"] if retcode != 0: - serv.privmsg(canal, errmsg) + serv.privmsg(canal, errmsg.encode("utf-8")) else: success, solde, pseudo = get_solde(sock, idbde, serv, canal) if success: -- 2.39.2