diff --git a/plugins/Math/plugin.py b/plugins/Math/plugin.py index c34891461..01c9261fc 100644 --- a/plugins/Math/plugin.py +++ b/plugins/Math/plugin.py @@ -103,7 +103,8 @@ class Math(callbacks.Plugin): _mathEnv['abs'] = abs _mathEnv['max'] = max _mathEnv['min'] = min - _mathEnv.pop('factorial') + _mathSafeEnv = dict([(x,y) for x,y in _mathEnv.items() + if x not in ['factorial']]) _mathRe = re.compile(r'((?:(?