Fix !stats for non-players

This commit is contained in:
skizzerz 2016-08-15 19:41:38 -05:00
parent 28ba8e2175
commit 32f2a2eb2c

View File

@ -1413,8 +1413,10 @@ def stats(cli, nick, chan, rest):
else:
badguys = var.WOLF_ROLES | {"traitor"}
role = None
if nick in pl:
role = get_role(nick)
if chan == nick and nick in pl and role in badguys | {"warlock"}:
if chan == nick and role in badguys | {"warlock"}:
ps = pl[:]
if role in badguys:
for i, player in enumerate(ps):