From f4f25ef72c45559d35764bf635d182782030a3f0 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Mon, 6 Sep 2004 08:07:54 +0000 Subject: [PATCH] Added abs to the calc command. --- plugins/Math.py | 1 + test/test_Math.py | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/plugins/Math.py b/plugins/Math.py index 9cc344c68..5ed75968c 100644 --- a/plugins/Math.py +++ b/plugins/Math.py @@ -129,6 +129,7 @@ class Math(callbacks.Privmsg): else: return math.sqrt(x) _mathEnv['sqrt'] = _sqrt + _mathEnv['abs'] = abs _mathRe = re.compile(r'((?:(?