cypher: case insensitivity when matching task difficulties
Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
This commit is contained in:
@@ -49,7 +49,7 @@ class Dice(Plugin):
|
||||
nick = NickMask(event.source).nick
|
||||
task = match.group(1)
|
||||
|
||||
task_group = re.search(CYPHER_ROLL_REGEX, task)
|
||||
task_group = re.search(CYPHER_ROLL_REGEX, task, re.IGNORECASE)
|
||||
difficulty = int(task_group.group('difficulty')) if task_group.group('difficulty') else None
|
||||
mods = task_group.group('mods')
|
||||
comment = task_group.group('comment')
|
||||
|
||||
Reference in New Issue
Block a user