don't roll on lines like '15 minutes later'

any die-initial roll line has to actually contain dice
This commit is contained in:
Patrick Hurst 2010-08-23 02:19:40 -04:00
parent c5f1fccd29
commit 434ff989f2
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ def dice(inp):
except AttributeError:
pass # we got called via hook.command, inp is already the roll
if desc == None: (inp, desc) = valid_diceroll_re.match(inp).groups()
if "d" not in inp: return
spec = whitespace_re.sub('', inp)
if not valid_diceroll_re.match(spec):
return "Invalid diceroll"