Explorar el Código

Allow reminder IDs to be lowercase.

tags/v0.2
Ben Kurtovic hace 10 años
padre
commit
700b57de1c
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. +1
    -0
      earwigbot/commands/remind.py

+ 1
- 0
earwigbot/commands/remind.py Ver fichero

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

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


Cargando…
Cancelar
Guardar