From 66fc3f6a78e2df1109a1719ed8be111e1aabe085 Mon Sep 17 00:00:00 2001 From: Sfan5 Date: Fri, 7 Feb 2014 21:43:38 +0100 Subject: [PATCH] [Calc] Why didn't I notice this? --- calc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/calc.py b/calc.py index ab6a891..10a035b 100755 --- a/calc.py +++ b/calc.py @@ -43,7 +43,7 @@ def c(phenny, input): return phenny.reply("Nothing to calculate.") q = input.group(2).encode('ascii', 'ignore') if '__' in q: - phenny.reply("Sorry, but no double underscores.") + return phenny.reply("Sorry, but no double underscores.") print("[LOG]: %s calculated '%s'" % (input.nick, q)) try: phenny.say(repr(eval(q, {'__builtins__': env}, {})))