aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar jesopo2018-10-11 13:32:28 +0100
committerGravatar jesopo2018-10-11 13:32:28 +0100
commita9202a6abf813097011e61aacd31709e9cd94189 (patch)
tree2b5c82d48f4bca9e95a2d2aa08163e44f7c0cb0c
parentCorrect the way !givepermission checks if a user is identified (diff)
signature
Add !py as an alias of !python in modules/eval_python.py
-rw-r--r--modules/eval_python.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/eval_python.py b/modules/eval_python.py
index 95d1b5ee..281cba97 100644
--- a/modules/eval_python.py
+++ b/modules/eval_python.py
@@ -5,6 +5,7 @@ EVAL_URL = "https://eval.appspot.com/eval"
class Module(ModuleManager.BaseModule):
_name = "Python"
+ @utils.hook("received.command.py", alias_of="python")
@utils.hook("received.command.python", min_args=1)
def eval(self, event):
"""