fix error when doing 'kill and', 'kill and 7' will try killing 'and' and '7'

This commit is contained in:
jacob1 2016-10-25 08:27:28 -04:00
parent 24c5e845d3
commit 1d664fae6b

View File

@ -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]