1
0
mirror of https://github.com/irssi/irssi.git synced 2024-11-03 04:27:19 -05:00

Make backward compatible with ssl flags

This commit is contained in:
Jari Matilainen 2017-06-04 19:47:30 +02:00
parent e84adeca15
commit f28c64a3dc

View File

@ -124,7 +124,8 @@ static void cmd_server_add_modify(const char *data, gboolean add)
port = atoi(portstr);
else if (value != NULL && *value != '\0')
port = atoi(value);
else if (g_hash_table_lookup(optlist, "tls"))
else if (g_hash_table_lookup(optlist, "tls") ||
g_hash_table_lookup(optlist, "ssl"))
port = DEFAULT_SERVER_ADD_TLS_PORT;
else
port = DEFAULT_SERVER_ADD_PORT;