aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorGravatar jesopo2018-10-01 16:04:06 +0100
committerGravatar jesopo2018-10-01 16:04:06 +0100
commit7eb31820d78d53c30f378735c63d703321f45ecc (patch)
tree17350faa02c954208513c6c1626e8c99b5198fd5 /modules
parentImplement client-side bindhost (diff)
signature
Add call_unsafe functions to EventManager.EventHook, to not swallow errors on
specific function calls (e.g. preprocess.command)
Diffstat (limited to 'modules')
-rw-r--r--modules/commands.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/commands.py b/modules/commands.py
index 1cf3a9e3..f366b90c 100644
--- a/modules/commands.py
+++ b/modules/commands.py
@@ -96,8 +96,8 @@ class Module(ModuleManager.BaseModule):
stdout, stderr = StdOut(module_name, target), StdErr(module_name,
target)
- returns = self.events.on("preprocess.command"
- ).call(hook=hook, user=event["user"], server=event["server"],
+ returns = self.events.on("preprocess.command").unsafe_call(
+ hook=hook, user=event["user"], server=event["server"],
target=target, is_channel=is_channel, tags=event["tags"])
for returned in returns:
if returned: