aboutsummaryrefslogtreecommitdiff
path: root/modules/line_handler/__init__.py
diff options
context:
space:
mode:
authorGravatar jesopo2019-05-22 11:56:21 +0100
committerGravatar jesopo2019-05-22 11:56:21 +0100
commit4ce8d6b461d6e4ef523fe393aaf266e5c0d468b3 (patch)
tree976e8f179bab2aa4c708b78524a68577fccbcefd /modules/line_handler/__init__.py
parentLog calls need formatting arguments as a second arg (diff)
signature
Pass `server` through FAIL events, use FAIL `command` as part of event path
Diffstat (limited to 'modules/line_handler/__init__.py')
-rw-r--r--modules/line_handler/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/line_handler/__init__.py b/modules/line_handler/__init__.py
index 43cdc4bf..a11fdec5 100644
--- a/modules/line_handler/__init__.py
+++ b/modules/line_handler/__init__.py
@@ -55,8 +55,8 @@ class Module(ModuleManager.BaseModule):
self.log.warn("FAIL (%s %s) received: %s",
[command, error_code, description])
- self.events.on("received.fail").call(command=command,
- error_code=error_code, context=context, description=description)
+ self.events.on("received.fail").on(command).call(error_code=error_code,
+ context=context, description=description, server=event["server"])
# first numeric line the server sends
@utils.hook("raw.received.001", default_event=True)