Check that a user is updating an existing badge (badges.py)

This commit is contained in:
jesopo 2018-12-20 21:10:41 +00:00
parent ebc835e6d5
commit be7ae375ca

View file

@ -127,6 +127,9 @@ class Module(ModuleManager.BaseModule):
found_badge = badge_name
break
if not found_badge:
raise utils.EventError("You have no '%s' badge" % badge)
value = event["args_split"][-1]
if value.lower() == "today":
value = self._now()