From 7373f7ee7dd65e8d3b590dccf4608b8273869041 Mon Sep 17 00:00:00 2001 From: Juhani Haverinen Date: Sun, 27 Oct 2013 01:54:40 +0300 Subject: [PATCH] #kick will no longer kick the kicker if reason is provided --- botcmd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/botcmd.py b/botcmd.py index 4dcb287..7c97105 100644 --- a/botcmd.py +++ b/botcmd.py @@ -121,7 +121,7 @@ def parse((line,irc)): if len(line)>4: if line[4]=='oonbotti2': irc.send('KICK %s %s :Fuck you'%(chan,nick)) - elif random.randint(0,9)==0: + elif random.randint(0,9)==0 and len(line)==5: irc.send('KICK %s %s :Bam'%(chan,nick)) else: addauthcmd(nick,'KICK %s %s :%s'%(chan,line[4],' '.join(line[5:])))