diff options
| author | 2018-09-30 17:29:09 +0100 | |
|---|---|---|
| committer | 2018-09-30 17:29:09 +0100 | |
| commit | 10ef985a8a849a6bbfa8cbb63c2548e42ffb3957 (patch) | |
| tree | 4da29ff0462ca69820d81aa95afb4b261ab3213c /modules/hash.py | |
| parent | received.command takes a final [command] part (diff) | |
| signature | ||
Switch to using docstring for usage, permission and require_mode
Diffstat (limited to 'modules/hash.py')
| -rw-r--r-- | modules/hash.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/hash.py b/modules/hash.py index 4508d613..04b2f99c 100644 --- a/modules/hash.py +++ b/modules/hash.py @@ -2,10 +2,11 @@ import hashlib from src import ModuleManager, Utils class Module(ModuleManager.BaseModule): - @Utils.hook("received.command.hash", min_args=2, usage="<algo> <string>") + @Utils.hook("received.command.hash", min_args=2) def hash(self, event): """ - Hash a given string with a given algorithm + :help: Hash a given string with a given algorithm + :usage: <algo> <string> """ algorithm = event["args_split"][0].lower() if algorithm in hashlib.algorithms_available: |
