Skip to content

Commit

Permalink
Only people can give points
Browse files Browse the repository at this point in the history
  • Loading branch information
honza committed Feb 11, 2013
1 parent b5349ab commit eae0619
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions matchers/points.py
Expand Up @@ -46,6 +46,9 @@ class PointsMatcher(BaseMatcher):
name = 'points'

def respond(self, message, user=None):
if user not in people:
return

if message.startswith(('leaderboard', 'scoreboard',)):
msg = ", ".join(map(get_points, people))
self.speak(msg)
Expand Down

0 comments on commit eae0619

Please sign in to comment.