add >, <, ~ and % operators to calc

This commit is contained in:
jomo
2015-01-10 00:37:03 +01:00
parent d4813f7dc5
commit c6dd5ce4a9

View File

@@ -1,7 +1,7 @@
from helpers import * from helpers import *
calc_users = open_json_file("calc", []) calc_users = open_json_file("calc", [])
math_operators = ["+", "-", "*", "/", "&", "|"] math_operators = ["+", "-", "*", "/", "&", "|", ">", "<", "~", "%"]
ignore_operators = ["**", "&&", "||"] # ** may be too intensive, the others cause syntax errors ignore_operators = ["**", "&&", "||"] # ** may be too intensive, the others cause syntax errors
calc_perm = "utils.calc" calc_perm = "utils.calc"