never bot.panic() on sasl hard fail - always just reconnect indefinitely

This commit is contained in:
jesopo 2019-10-30 11:03:55 +00:00
parent 9f7ef8e6d2
commit 0675285624

View file

@ -160,11 +160,8 @@ class Module(ModuleManager.BaseModule):
if server.get_setting("sasl-hard-fail",
self.bot.get_setting("sasl-hard-fail", False)):
message = "SASL panic for %s: %s" % (str(server), message)
if not server.from_init:
self.log.error(message)
self.bot.disconnect(server)
else:
self.bot.panic(message)
self.log.error(message)
self.bot.disconnect(server)
else:
self.log.warn("SASL failure for %s: %s" % (str(server), message))
self._end_sasl(server)