server and tag var don't exist

This commit is contained in:
jesopo 2019-05-22 08:42:03 +01:00
parent f52fd2adc4
commit 6a4852d2b4

View file

@ -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"])