mirror of
https://github.com/irssi/irssi.git
synced 2024-09-08 04:26:01 -04:00
Make sure sasl settings are defined before printing them out
This commit is contained in:
parent
cff536ab70
commit
b04b5f0f1d
@ -56,12 +56,12 @@ static void cmd_network_list(void)
|
|||||||
g_string_append_printf(str, "autosendcmd: %s, ", rec->autosendcmd);
|
g_string_append_printf(str, "autosendcmd: %s, ", rec->autosendcmd);
|
||||||
if (rec->usermode != NULL)
|
if (rec->usermode != NULL)
|
||||||
g_string_append_printf(str, "usermode: %s, ", rec->usermode);
|
g_string_append_printf(str, "usermode: %s, ", rec->usermode);
|
||||||
if (rec->sasl_username != NULL) {
|
if (rec->sasl_mechanism != NULL)
|
||||||
g_string_append_printf(str, "sasl_mechanism: %s, ", rec->sasl_mechanism);
|
g_string_append_printf(str, "sasl_mechanism: %s, ", rec->sasl_mechanism);
|
||||||
|
if (rec->sasl_username != NULL)
|
||||||
g_string_append_printf(str, "sasl_username: %s, ", rec->sasl_username);
|
g_string_append_printf(str, "sasl_username: %s, ", rec->sasl_username);
|
||||||
|
if (rec->sasl_password != NULL)
|
||||||
g_string_append_printf(str, "sasl_password: (pass), ");
|
g_string_append_printf(str, "sasl_password: (pass), ");
|
||||||
}
|
|
||||||
|
|
||||||
if (rec->cmd_queue_speed > 0)
|
if (rec->cmd_queue_speed > 0)
|
||||||
g_string_append_printf(str, "cmdspeed: %d, ", rec->cmd_queue_speed);
|
g_string_append_printf(str, "cmdspeed: %d, ", rec->cmd_queue_speed);
|
||||||
if (rec->max_cmds_at_once > 0)
|
if (rec->max_cmds_at_once > 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user