Fix #kick

This commit is contained in:
Juhani Haverinen 2015-03-05 17:41:32 +02:00
parent a6094a226a
commit 4d07c5fdee
1 changed files with 1 additions and 1 deletions

View File

@ -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):