1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

Merge pull request #12 from ailin-nemui/ticho/singlenet

can do /server add -matrix -network my_matrix_network
This commit is contained in:
ailin-nemui 2021-08-11 15:59:10 +02:00 committed by GitHub
commit 7452ec34ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -91,7 +91,9 @@ static SERVER_SETUP_REC *create_server_setup(GHashTable *optlist)
if (rec == NULL) if (rec == NULL)
rec = chat_protocol_get_default(); rec = chat_protocol_get_default();
else { else {
chatnet = g_hash_table_lookup(optlist, rec->chatnet); chatnet = g_hash_table_lookup(optlist, "network");
if (chatnet == NULL && g_hash_table_lookup(optlist, rec->chatnet) != NULL)
chatnet = rec->chatnet;
if (chatnet_find(chatnet) == NULL) { if (chatnet_find(chatnet) == NULL) {
printformat(NULL, NULL, MSGLEVEL_CLIENTNOTICE, printformat(NULL, NULL, MSGLEVEL_CLIENTNOTICE,
TXT_UNKNOWN_CHATNET, chatnet); TXT_UNKNOWN_CHATNET, chatnet);