From a21fded1703860300652f305c600a401e1c23dac Mon Sep 17 00:00:00 2001 From: Juhani Haverinen Date: Mon, 17 Mar 2014 23:40:22 +0200 Subject: [PATCH] Fixed exploit involving caseness --- botcmd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/botcmd.py b/botcmd.py index dc3cf3a..b39321f 100644 --- a/botcmd.py +++ b/botcmd.py @@ -119,7 +119,7 @@ def parse((line,irc)): chmode(irc,chan,nick,'-v',line[4:]) elif line[3]==':#kick': if len(line)>4: - if line[4]=='oonbotti2': + if line[4].lower()=='oonbotti2': irc.send('KICK %s %s :Fuck you'%(chan,nick)) elif random.randint(0,9)==0 and len(line)==5: irc.send('KICK %s %s :Bam'%(chan,nick))