mirror of
https://github.com/irssi/irssi.git
synced 2026-08-10 12:23:37 +02:00
Merge pull request #719 from LemonBoy/sasl-disable-none
Setting sasl_mechanism to '' disables the auth
This commit is contained in:
commit
437fbef6eb
3 changed files with 7 additions and 6 deletions
|
|
@ -163,11 +163,11 @@ static void cmd_network_add_modify(const char *data, gboolean add)
|
|||
|
||||
/* the validity of the parameters is checked in sig_server_setup_fill_chatnet */
|
||||
value = g_hash_table_lookup(optlist, "sasl_mechanism");
|
||||
if (value != NULL && *value != '\0') rec->sasl_mechanism = g_strdup(value);
|
||||
if (value != NULL) rec->sasl_mechanism = *value != '\0' ? g_strdup(value) : NULL;
|
||||
value = g_hash_table_lookup(optlist, "sasl_username");
|
||||
if (value != NULL && *value != '\0') rec->sasl_username = g_strdup(value);
|
||||
if (value != NULL) rec->sasl_username = *value != '\0' ? g_strdup(value) : NULL;
|
||||
value = g_hash_table_lookup(optlist, "sasl_password");
|
||||
if (value != NULL && *value != '\0') rec->sasl_password = g_strdup(value);
|
||||
if (value != NULL) rec->sasl_password = *value != '\0' ? g_strdup(value) : NULL;
|
||||
|
||||
ircnet_create(rec);
|
||||
printformat(NULL, NULL, MSGLEVEL_CLIENTNOTICE, IRCTXT_NETWORK_ADDED, name);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue