never bot.panic() on sasl hard fail - always just reconnect indefinitely
This commit is contained in:
parent
9f7ef8e6d2
commit
0675285624
1 changed files with 2 additions and 5 deletions
|
@ -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)
|
||||
else:
|
||||
self.log.warn("SASL failure for %s: %s" % (str(server), message))
|
||||
self._end_sasl(server)
|
||||
|
|
Loading…
Reference in a new issue