don't roll on lines like '15 minutes later'
any die-initial roll line has to actually contain dice
This commit is contained in:
parent
c5f1fccd29
commit
434ff989f2
|
@ -44,7 +44,7 @@ def dice(inp):
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
pass # we got called via hook.command, inp is already the roll
|
pass # we got called via hook.command, inp is already the roll
|
||||||
if desc == None: (inp, desc) = valid_diceroll_re.match(inp).groups()
|
if desc == None: (inp, desc) = valid_diceroll_re.match(inp).groups()
|
||||||
|
if "d" not in inp: return
|
||||||
spec = whitespace_re.sub('', inp)
|
spec = whitespace_re.sub('', inp)
|
||||||
if not valid_diceroll_re.match(spec):
|
if not valid_diceroll_re.match(spec):
|
||||||
return "Invalid diceroll"
|
return "Invalid diceroll"
|
||||||
|
|
Loading…
Reference in New Issue