From: Vincent Le Gallic Date: Mon, 13 Oct 2014 18:11:31 +0000 (+0200) Subject: Unicode fix X-Git-Url: http://gitweb.pimeys.fr/?a=commitdiff_plain;h=71e90399847a7a3a6d20ed8f0dc11a0966fe9b58;p=bots%2Fbasile.git Unicode fix --- diff --git a/basile.py b/basile.py index 123a94c..b6dd64a 100755 --- a/basile.py +++ b/basile.py @@ -725,7 +725,7 @@ class Basile(ircbot.SingleServerIRCBot): victime = ev.arguments()[0] raison = ev.arguments()[1] if victime == self.nick: - log(self.serveur, u"%s kické de %s par %s (raison : %s)" % (victime, channel.decode("utf-8"), auteur, raison)) + log(self.serveur, ("%s kické de %s par %s (raison : %s)" % (victime, channel, auteur, raison)).decode("utf-8")) time.sleep(2) serv.join(channel) l1, l2 = config.kick_answers, config.kick_actions