From 0246698b873cb7534d02ef973f27134ca633bb17 Mon Sep 17 00:00:00 2001 From: jacob1 Date: Tue, 8 Sep 2015 23:03:24 -0400 Subject: [PATCH] fix !roles # to work as intended --- src/wolfgame.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/wolfgame.py b/src/wolfgame.py index 2e18809..d9bb4ad 100644 --- a/src/wolfgame.py +++ b/src/wolfgame.py @@ -7879,8 +7879,11 @@ def listroles(cli, nick, chan, rest): roleguide = [(role, roleguide[role]) for role in var.role_order()] for i, num in enumerate(roleindex): #getting the roles at a specific player count - if index and num > index: - break + if index: + if num < index: + continue + if num > index: + break msg.append("{0}[{1}]{0}".format("\u0002" if num <= lpl else "", str(num))) roles = [] for role, amount in roleguide: