Stop processing a command when we've decided the user doesn't have permission
(commands.py)
This commit is contained in:
parent
249734ebef
commit
a501fdea1f
1 changed files with 1 additions and 0 deletions
|
@ -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))
|
||||||
|
|
Loading…
Reference in a new issue