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

Merge pull request #1491 from ailin-nemui/serveradd-crash

stop crash on server add
This commit is contained in:
ailin-nemui 2023-08-26 17:11:38 +00:00 committed by GitHub
commit 58ca3af360
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -101,8 +101,14 @@ static SERVER_SETUP_REC *create_server_setup(GHashTable *optlist)
}
}
server = rec->create_server_setup();
server->chat_type = rec->id;
if (rec == NULL) {
/* no protocols loaded, bail out */
signal_emit("chat protocol unknown", 1, "(none)");
return NULL;
}
server = rec->create_server_setup();
server->chat_type = rec->id;
server->tls_verify = TRUE;
return server;
}