diff --git a/plugins/Math/plugin.py b/plugins/Math/plugin.py index a074b1417..ea03b0064 100644 --- a/plugins/Math/plugin.py +++ b/plugins/Math/plugin.py @@ -106,7 +106,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'((?:(?