[Calc] Why didn't I notice this?

master
Sfan5 2014-02-07 21:43:38 +01:00
parent 2b2001905d
commit 66fc3f6a78
1 changed files with 1 additions and 1 deletions

View File

@ -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}, {})))