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:
commit
58ca3af360
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user