mirror of
https://github.com/irssi/irssi.git
synced 2026-08-20 17:12:51 +02:00
only enable sasl plain when username and password are set
may fix #1325
This commit is contained in:
parent
4001871552
commit
63a5b80ba7
1 changed files with 1 additions and 1 deletions
|
|
@ -121,9 +121,9 @@ static void sig_server_setup_fill_chatnet(IRC_SERVER_CONNECT_REC *conn,
|
||||||
if (ircnet->sasl_mechanism != NULL) {
|
if (ircnet->sasl_mechanism != NULL) {
|
||||||
if (!g_ascii_strcasecmp(ircnet->sasl_mechanism, "plain")) {
|
if (!g_ascii_strcasecmp(ircnet->sasl_mechanism, "plain")) {
|
||||||
/* The PLAIN method needs both the username and the password */
|
/* The PLAIN method needs both the username and the password */
|
||||||
conn->sasl_mechanism = SASL_MECHANISM_PLAIN;
|
|
||||||
if (ircnet->sasl_username != NULL && *ircnet->sasl_username &&
|
if (ircnet->sasl_username != NULL && *ircnet->sasl_username &&
|
||||||
ircnet->sasl_password != NULL && *ircnet->sasl_password) {
|
ircnet->sasl_password != NULL && *ircnet->sasl_password) {
|
||||||
|
conn->sasl_mechanism = SASL_MECHANISM_PLAIN;
|
||||||
conn->sasl_username = g_strdup(ircnet->sasl_username);
|
conn->sasl_username = g_strdup(ircnet->sasl_username);
|
||||||
conn->sasl_password = g_strdup(ircnet->sasl_password);
|
conn->sasl_password = g_strdup(ircnet->sasl_password);
|
||||||
} else
|
} else
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue