From 8fd41d4bf99d7893d33f3a938dbfcec9805cc8db Mon Sep 17 00:00:00 2001 From: jacob1 Date: Tue, 19 Aug 2014 21:54:17 -0400 Subject: [PATCH] fix !roles with argument --- modules/wolfgame.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/wolfgame.py b/modules/wolfgame.py index 72f51fd..c1f0872 100644 --- a/modules/wolfgame.py +++ b/modules/wolfgame.py @@ -5267,6 +5267,7 @@ def listroles(cli, nick, chan, rest): old = {} txt = "" index = 0 + pl = len(var.list_players()) + len(var.DEAD) for r in var.ROLE_GUIDE.keys(): old[r] = 0 @@ -5278,7 +5279,6 @@ def listroles(cli, nick, chan, rest): index = var.ROLE_INDEX[i] break else: - pl = len(var.list_players()) + len(var.DEAD) if pl > 0: txt += ' {0}: There are \u0002{1}\u0002 playing.'.format(nick, pl)