Fix SASL support for ircds which don't advertise SASL types in CAP
This commit is contained in:
parent
9190a4c859
commit
916d476ca5
@ -277,7 +277,7 @@ def connect_callback(cli):
|
|||||||
mech = "PLAIN"
|
mech = "PLAIN"
|
||||||
selected_sasl = mech
|
selected_sasl = mech
|
||||||
|
|
||||||
if supported_sasl and mech in supported_sasl:
|
if supported_sasl is None or mech in supported_sasl:
|
||||||
cli.send("AUTHENTICATE {0}".format(mech))
|
cli.send("AUTHENTICATE {0}".format(mech))
|
||||||
else:
|
else:
|
||||||
alog("Server does not support the SASL {0} mechanism".format(mech))
|
alog("Server does not support the SASL {0} mechanism".format(mech))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user