Fix !roles for real

Submitted by:	dwfreed
This commit is contained in:
Eitan Adler 2013-04-15 15:25:42 -04:00
parent e7685135ff
commit 8c3544d44a

View File

@ -2709,8 +2709,8 @@ def listroles(cli, nick, chan, rest):
txt = ""
pl = len(var.ORIGINAL_ROLES)
if pl > 1:
pl = len(var.list_players()) + len(var.DEAD)
if pl > 0:
txt += '{0}: There are \u0002{1}\u0002 playing. '.format(nick, pl)
for i,v in sorted({i:var.ROLES_GUIDE[i] for i in var.ROLES_GUIDE if i is not None}.items()):