From 0bfadbdf0bfb4aae2843ad40b336268ca02eb62a Mon Sep 17 00:00:00 2001 From: Vincent Le Gallic Date: Fri, 18 May 2012 00:53:06 +0200 Subject: [PATCH] =?utf8?q?Correction=20de=20la=20r=C3=A9ponse=20au=20kick?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- basile.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/basile.py b/basile.py index fe10bae..3684c68 100755 --- a/basile.py +++ b/basile.py @@ -890,13 +890,13 @@ class Basile(ircbot.SingleServerIRCBot): log(self.serveur,"%s kické par %s (raison : %s)" %(victime,auteur,raison)) time.sleep(2) serv.join(channel) - l1,l2=config_kick_actions,config_kick_answers + l1,l2=config_kick_answers,config_kick_actions n1,n2=len(l1),len(l2) i=random.randrange(n1+n2) if i>=n1: - serv.action(channel,l2[i-n1].encode("utf8")) + serv.action(channel,l2[i-n1].format(auteur).encode("utf8")) else: - serv.privmsg(channel,"%s: %s"%(auteur,l1[i].encode("utf8"))) + serv.privmsg(channel,"%s: %s"%(auteur,l1[i].format(auteur).encode("utf8"))) def _getnick(self): return self.serv.get_nickname() -- 2.39.2