From: Vincent Le Gallic Date: Thu, 17 May 2012 22:53:06 +0000 (+0200) Subject: Correction de la réponse au kick X-Git-Url: http://gitweb.pimeys.fr/?a=commitdiff_plain;h=0bfadbdf0bfb4aae2843ad40b336268ca02eb62a;p=bots%2Fbasile.git Correction de la réponse au kick --- 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()