From 0139f431be931dbd73d6f4f922ec361b91e7149f Mon Sep 17 00:00:00 2001 From: Vincent Le Gallic Date: Fri, 11 May 2012 18:30:12 +0200 Subject: [PATCH] Commande KICK, correction --- basile.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 -- 2.39.2