summaryrefslogtreecommitdiff
path: root/calc.py
AgeCommit message (Collapse)Author
2015-10-27Changed to ignore lower/upper caseNEMESIS13cz
2015-09-13Fixed missing returnNEMESIS13cz
2015-09-13Fixed error tracingNEMESIS13cz
2015-08-11Added support for hex stringsNEMESIS13cz
2015-08-11Rewrote a lot, added a lotNEMESIS13cz
2015-08-10Changed calc to run on a separate threadNEMESIS13cz
2015-06-06Fix /upDico200
Tried a lot of shit but these 3 lines should do it.
2015-03-19Changed all CommandExecutor argumentsDico200
Added arguments command and label to all command executor functions, hopefully for massive performance increase. This is due to the following mess in PythonLoader: ``` Java @Override public boolean onCommand(CommandSender sender, Command command, String label, String[] args) { boolean result; if (argcount == -1) { try { result = call(4, sender, command, label, args); argcount = 4; } catch (PyException e) { //this could goof up someone ... they'll probably yell at us and eventually read this code ... fuck them if (e.type == Py.TypeError && (e.value.toString().endsWith("takes exactly 3 arguments (4 given)") || e.value.toString().endsWith("takes exactly 4 arguments (5 given)"))) { result = call(3, sender, command, label, args); argcount = 3; } else if (e.type == Py.TypeError && (e.value.toString().endsWith("takes exactly 2 arguments (4 given)") || e.value.toString().endsWith("takes exactly 3 arguments (5 given)"))) { result = call(2, sender, command, label, args); argcount = 2; } else { throw e; } } } else { result = call(argcount, sender, command, label, args); } return result; } ``` Note: Still WIP on reports - I'm working on making it keep solved reports to fix issue 10
2015-01-17Removed . from operators, remade line 17PanFritz
2015-01-17Added check for .PanFritz
2015-01-16added . to maths operator to support floatsPanFritz
2015-01-13Reverted changesPanFritz
2015-01-13Added should_calc check and done expression varPanFritz
2015-01-13removed should_calc condition from line 23, replaced breakPanFritz
2015-01-13testingPanFritz
2015-01-11420 = blazeitjomo
2015-01-11only output numbersjomo
we also support shifting (>>, <<), so the > and < characters are allowed which might lead to a bool type output we don't want to show bool output
2015-01-10add >, <, ~ and % operators to calcjomo
2015-01-07delete duplicate chat messagejomo
2015-01-06change indentation from 2 spaces to 4, fix #5jomo
2015-01-06Revert "Fixed calc when calling toggle"jomo
This reverts commit 825acf330ab6200f9f6dabe438a1212f838452c4.
2015-01-06Fixed calc when calling togglePanFritz
2015-01-02use name parameter for toggle()jomo
2015-01-02/calc can only be used on senderjomo
2015-01-02improve calc, make users savablejomo
2015-01-02stfu pylintjomo
2015-01-02more calc improvementsjomo
2015-01-02docsjomo
2015-01-02better colorjomo
2015-01-02improve calc.pyjomo
2015-01-01Final modification for todayGap
2015-01-01Removed debugging shitGap
2015-01-01(+Pan) Added small chat calculatorGap