From 2070309806c3a4eed5ef3e7aab0ba525a7b07165 Mon Sep 17 00:00:00 2001 From: Vincent Le Gallic Date: Fri, 11 May 2012 18:26:08 +0200 Subject: [PATCH] Commande KICK --- basile.py | 8 ++++++++ 1 file changed, 8 insertions(+) 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 !") -- 2.39.2