Don't discard empty command args for !hash

This commit is contained in:
jesopo 2019-06-23 12:14:06 +01:00
parent 4efbbbce9d
commit 78be79b565

View file

@ -4,7 +4,7 @@ import hashlib
from src import ModuleManager, utils
class Module(ModuleManager.BaseModule):
@utils.hook("received.command.hash", min_args=2)
@utils.hook("received.command.hash", min_args=2, remove_empty=False)
def hash(self, event):
"""
:help: Hash a given string with a given algorithm