]> gitweb.pimeys.fr Git - bots/basile.git/commitdiff
Commande KICK, correction
authorVincent Le Gallic <legallic@crans.org>
Fri, 11 May 2012 16:30:12 +0000 (18:30 +0200)
committerVincent Le Gallic <legallic@crans.org>
Fri, 11 May 2012 16:30:12 +0000 (18:30 +0200)
basile.py

index 58b7173a72abf04b8a4295ecdceaf1c3fd2bd56c..4d330f35804e7121d5fd5a35343ddee3345ca4b7 100755 (executable)
--- 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 <channel> <pseudo>")
             else:
                 notunderstood=True