From: Vincent Le Gallic Date: Fri, 11 May 2012 16:30:12 +0000 (+0200) Subject: Commande KICK, correction X-Git-Url: http://gitweb.pimeys.fr/?a=commitdiff_plain;h=0139f431be931dbd73d6f4f922ec361b91e7149f;p=bots%2Fbasile.git Commande KICK, correction --- diff --git a/basile.py b/basile.py index 58b7173..4d330f3 100755 --- a/basile.py +++ b/basile.py @@ -600,10 +600,10 @@ class Basile(ircbot.SingleServerIRCBot): else: notunderstood=True elif cmd=="kick": - if auteur in self.overops and len(message)>3: - serv.kick(message[1],message[2],raison=" ".join(message[3:])) + if auteur in self.overops and len(message)>2: + serv.kick(message[1],message[2]," ".join(message[3:])) log(self.serveur,"priv",auteur," ".join(message)) - elif len(message)<=3: + elif len(message)<=2: serv.privmsg(auteur,"Syntaxe : KICK ") else: notunderstood=True