Stop processing a command when we've decided the user doesn't have permission

(commands.py)
This commit is contained in:
jesopo 2019-01-29 15:38:04 +00:00
parent 249734ebef
commit a501fdea1f

View file

@ -188,6 +188,7 @@ class Module(ModuleManager.BaseModule):
if error: if error:
stderr.write(error).send(command_method) stderr.write(error).send(command_method)
target.buffer.skip_next() target.buffer.skip_next()
return
if hook.kwargs.get("remove_empty", True): if hook.kwargs.get("remove_empty", True):
args_split = list(filter(None, args_split)) args_split = list(filter(None, args_split))