Browse Source

Allow reminder IDs to be lowercase.

tags/v0.2
Ben Kurtovic 10 years ago
parent
commit
700b57de1c
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      earwigbot/commands/remind.py

+ 1
- 0
earwigbot/commands/remind.py View File

@@ -79,6 +79,7 @@ class Remind(Command):


Raises IndexError on failure. Raises IndexError on failure.
""" """
rid = rid.upper()
if user not in self.reminders: if user not in self.reminders:
raise IndexError(rid) raise IndexError(rid)
return [robj for robj in self.reminders[user] if robj.id == rid][0] return [robj for robj in self.reminders[user] if robj.id == rid][0]


Loading…
Cancel
Save