From: Vincent Le Gallic Date: Fri, 11 May 2012 16:26:08 +0000 (+0200) Subject: Commande KICK X-Git-Url: http://gitweb.pimeys.fr/?a=commitdiff_plain;h=2070309806c3a4eed5ef3e7aab0ba525a7b07165;p=bots%2Fbasile.git Commande KICK --- diff --git a/basile.py b/basile.py index a983964..58b7173 100755 --- a/basile.py +++ b/basile.py @@ -599,6 +599,14 @@ class Basile(ircbot.SingleServerIRCBot): serv.privmsg(auteur,"Syntaxe : DO ") 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:])) + log(self.serveur,"priv",auteur," ".join(message)) + elif len(message)<=3: + serv.privmsg(auteur,"Syntaxe : KICK ") + else: + notunderstood=True elif cmd=="lost": if auteur in self.ops and len(message)>1: serv.privmsg(message[1],"J'ai perdu !")