diff --git a/botcmd.py b/botcmd.py index 7f4c9d7..c7379a0 100644 --- a/botcmd.py +++ b/botcmd.py @@ -420,7 +420,7 @@ def parse((line, irc)): kicknick, kickreason = parsecmd(cmdline, 'nick {reason}') if kicknick.lower() == irc.nick: irc.send('KICK %s %s :Fuck you' % (chan, nick)) - elif random.randint(0,9) == 0 and len(line) == 5: + elif random.randint(0,9) == 0 and not kickreason: irc.send('KICK %s %s :Bam' % (chan, nick)) else: if isauthorized(irc, chan, nick):