aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorGravatar jesopo2018-11-02 11:13:43 +0000
committerGravatar jesopo2018-11-02 11:13:43 +0000
commit24e4e2c5add5eb9802c66dfac9f901570619b1ec (patch)
tree2e3e8faf166a24979b90eb7446ab7d2400063556 /modules
parentserverset identity-mechanism should be in modules/permissions.py (diff)
signature
Add a way to silently stop commands executing in modules/commands.py
(preprocess.command)
Diffstat (limited to 'modules')
-rw-r--r--modules/commands.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/commands.py b/modules/commands.py
index f5517cd0..cc38b0ec 100644
--- a/modules/commands.py
+++ b/modules/commands.py
@@ -141,7 +141,12 @@ class Module(ModuleManager.BaseModule):
hook=hook, user=event["user"], server=event["server"],
target=target, is_channel=is_channel, tags=event["tags"])
for returned in returns:
+ if returned == False:
+ # denotes a "silent failure"
+ target.buffer.skip_next()
+ return
if returned:
+ # error message
stderr.write(returned).send()
target.buffer.skip_next()
return