diff --git a/calc.py b/calc.py index 2a34d37..457ce9d 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" diff --git a/damnspam.py b/damnspam.py index 14f32b7..821fb14 100644 --- a/damnspam.py +++ b/damnspam.py @@ -99,7 +99,7 @@ def on_dammnspam_command(sender, args): @hook.event("block.BlockBreakEvent", "normal") def on_block_break(event): - global removing_input + / global removing_input if removing_input: return True