From 519dfb1df3da895c81551fc663a86fead5be3d34 Mon Sep 17 00:00:00 2001 From: Juhani Haverinen Date: Sat, 2 Sep 2017 22:07:10 +0300 Subject: [PATCH] Don't kick kicker --- botcmd.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/botcmd.py b/botcmd.py index 8086996..7422fc0 100644 --- a/botcmd.py +++ b/botcmd.py @@ -462,8 +462,6 @@ 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 not kickreason: - irc.send('KICK %s %s :Bam' % (chan, nick)) else: if isauthorized(irc, chan, nick): irc.send('KICK %s %s :%s'%(chan, kicknick, kickreason))