From 434ff989f256c5f90a1c303766cdb969aab0fd6d Mon Sep 17 00:00:00 2001 From: Patrick Hurst Date: Mon, 23 Aug 2010 02:19:40 -0400 Subject: [PATCH] don't roll on lines like '15 minutes later' any die-initial roll line has to actually contain dice --- plugins/dice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/dice.py b/plugins/dice.py index 21cde86..ea5eb27 100644 --- a/plugins/dice.py +++ b/plugins/dice.py @@ -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"