Log which server an ERROR came from

This commit is contained in:
jesopo 2019-03-19 10:26:15 +00:00
parent c4458653d2
commit 76ae55499b

View file

@ -44,7 +44,8 @@ class Module(ModuleManager.BaseModule):
@utils.hook("raw.received.error")
def error(self, event):
self.log.error("ERROR received: %s", [event["args"][0]])
self.log.error("ERROR received from %s: %s",
[str(event["server"]), event["args"][0]])
@utils.hook("raw.received.fail")
def fail(self, event):
command = event["args"][0]