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

stop crash on server add

reported by nsprra
This commit is contained in:
Ailin Nemui 2023-08-22 22:28:36 +02:00
parent 07b971cf0c
commit a037f68f02

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;
}