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:
parent
07b971cf0c
commit
a037f68f02
@ -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