From 989ea13d0211c171ff04df08f69a79f6621f94ba Mon Sep 17 00:00:00 2001 From: "Sean B. Palmer" Date: Fri, 7 Mar 2008 21:33:00 +0000 Subject: Minor fixes, and important .commands fix, to be private only. --- modules/calc.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'modules/calc.py') diff --git a/modules/calc.py b/modules/calc.py index 6768035..8e7caea 100755 --- a/modules/calc.py +++ b/modules/calc.py @@ -29,6 +29,8 @@ subs = [ def calc(phenny, input): q = input.group(2) + if not q: + return phenny.say('0?') query = q[:] for a, b in subs: -- cgit v1.2.3-1-g7c22