From 102188d568e8f520be462316b22b43752bff049b Mon Sep 17 00:00:00 2001 From: James Vega Date: Fri, 20 Aug 2004 04:10:32 +0000 Subject: [PATCH] utils.nItemsify --- plugins/Gameknot.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/plugins/Gameknot.py b/plugins/Gameknot.py index d375a7ccd..8bfbbba0f 100644 --- a/plugins/Gameknot.py +++ b/plugins/Gameknot.py @@ -117,10 +117,7 @@ class Gameknot(callbacks.PrivmsgCommandAndRegexp): else: seen = '%s was last seen on Gameknot %s.' % (name, seen.group(2)) - if games == '1': - games = '1 active game' - else: - games = '%s active games' % games + games = utils.nItems('game', int(games), between='active') if 'Team:' in profile: team = self._gkteam.search(profile).group('name') team = utils.htmlToText(team)