From 6a4852d2b4822dbaa6fff100b1ef76a1b3acb3cb Mon Sep 17 00:00:00 2001 From: jesopo Date: Wed, 22 May 2019 08:42:03 +0100 Subject: [PATCH] `server` and `tag` var don't exist --- modules/line_handler/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/line_handler/__init__.py b/modules/line_handler/__init__.py index 12cf8e76..9650af76 100644 --- a/modules/line_handler/__init__.py +++ b/modules/line_handler/__init__.py @@ -26,7 +26,8 @@ class Module(ModuleManager.BaseModule): def handle_raw(self, event): if ("batch" in event["line"].tags and event["line"].tags["batch"] in event["server"].batches): - server.batches[tag["batch"]].lines.append(event["line"]) + event["server"].batches[event["line"].tags["batch"]].lines.append( + event["line"]) else: self._handle(event["server"], event["line"])