!echo should have a min_args kwarg

This commit is contained in:
jesopo 2019-09-26 11:56:37 +01:00
parent 4bb20c49dd
commit 1da8e15b78

View file

@ -4,5 +4,6 @@ from src import ModuleManager, utils
class Module(ModuleManager.BaseModule): class Module(ModuleManager.BaseModule):
@utils.hook("received.command.echo") @utils.hook("received.command.echo")
@utils.kwarg("min_args", 1)
def echo(self, event): def echo(self, event):
event["stdout"].write(event["args"]) event["stdout"].write(event["args"])