summaryrefslogtreecommitdiff
path: root/calc.py
diff options
context:
space:
mode:
authorjomo <github@jomo.tv>2015-01-10 00:37:03 +0100
committerjomo <github@jomo.tv>2015-01-10 00:37:03 +0100
commitc6dd5ce4a982bb50e6b155501072889149dec756 (patch)
tree18b7326d768818ce8618aaee3c7a938ba492ab59 /calc.py
parentd4813f7dc56bfa5085e46ccfdd0e271d9c5029be (diff)
add >, <, ~ and % operators to calc
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 0a3cc44..aa57294 100644
--- a/calc.py
+++ b/calc.py
@@ -1,7 +1,7 @@
from helpers import *
calc_users = open_json_file("calc", [])
-math_operators = ["+", "-", "*", "/", "&", "|"]
+math_operators = ["+", "-", "*", "/", "&", "|", ">", "<", "~", "%"]
ignore_operators = ["**", "&&", "||"] # ** may be too intensive, the others cause syntax errors
calc_perm = "utils.calc"