fix error when doing 'kill and', 'kill and 7' will try killing 'and' and '7'
This commit is contained in:
parent
24c5e845d3
commit
1d664fae6b
@ -44,7 +44,7 @@ def wolf_kill(cli, nick, chan, rest):
|
||||
victim = pieces[i]
|
||||
except IndexError:
|
||||
break
|
||||
if victim.lower() == "and":
|
||||
if i > 0 and victim.lower() == "and" and i+1 < len(pieces):
|
||||
extra += 1
|
||||
i += 1
|
||||
victim = pieces[i]
|
||||
|
Loading…
x
Reference in New Issue
Block a user