summaryrefslogtreecommitdiff
path: root/calc.py
diff options
context:
space:
mode:
Diffstat (limited to 'calc.py')
-rw-r--r--calc.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/calc.py b/calc.py
index aa57294..befa33f 100644
--- a/calc.py
+++ b/calc.py
@@ -40,7 +40,7 @@ def on_calc_chat(event):
message = event.getMessage()
if not event.isCancelled() and uid(sender) in calc_users and sender.hasPermission(calc_perm):
output = calc(message)
- if output:
+ if type(output)in [int, float, long, complex]:
msg(sender, "&2=== Calc: &e" + output[0] + " &2= &c" + output[1])