Storycraft: allow listing of completed games

This commit is contained in:
Brian S. Stephan 2011-01-09 11:16:36 -06:00
parent 940ed57f2e
commit ce7d9e8010
1 changed files with 3 additions and 1 deletions

View File

@ -75,7 +75,7 @@ class Storycraft(Module):
statuspattern = rootcommand + '\s+status(\s+(\d+)$|$)'
newgamepattern = rootcommand + '\s+new\s+game(\s+with\s+config\s+(.*)$|$)'
joingamepattern = rootcommand + '\s+join\s+game\s+(\d+)$'
listgamespattern = rootcommand + '\s+list\s+games\s+(open|in\s+progress)$'
listgamespattern = rootcommand + '\s+list\s+games\s+(open|in\s+progress|completed)$'
startgamepattern = rootcommand + '\s+start\s+game\s+(\d+)$'
showlinepattern = rootcommand + '\s+game\s+(\d+)\s+show\s+line$'
addlinepattern = rootcommand + '\s+game\s+(\d+)\s+add\s+line\s+(.*)$'
@ -297,6 +297,8 @@ class Storycraft(Module):
games = self._get_open_games()
elif category == 'in progress':
games = self._get_in_progress_games()
elif category == 'completed':
games = self._get_completed_games()
if len(games) > 5:
# just list the game ids