Log a WARN when we get a 904 (failed sasl)

This commit is contained in:
jesopo 2019-02-06 16:25:43 +00:00
parent 16ea48cb54
commit bf3986a1be

View file

@ -98,9 +98,11 @@ class Module(ModuleManager.BaseModule):
def _end_sasl(self, server):
server.capability_done("sasl")
@utils.hook("received.numeric.903")
def sasl_success(self, event):
self._end_sasl(event["server"])
@utils.hook("received.numeric.904")
def sasl_failure(self, event):
self.log.warn("SASL failure: %s", [event["args"][1]])
self._end_sasl(event["server"])