added . to maths operator to support floats

This commit is contained in:
PanFritz
2015-01-16 23:40:14 +01:00
parent 9a42172c4e
commit 1515777494
2 changed files with 2 additions and 2 deletions

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"

View File

@@ -99,7 +99,7 @@ def on_dammnspam_command(sender, args):
@hook.event("block.BlockBreakEvent", "normal") @hook.event("block.BlockBreakEvent", "normal")
def on_block_break(event): def on_block_break(event):
global removing_input / global removing_input
if removing_input: if removing_input:
return True return True