1
0
mirror of https://github.com/irssi/irssi.git synced 2024-09-29 04:45:57 -04:00

Merge pull request #999 from ailin-nemui/mad-protocol

do not touch uninitialised protocols on item restore
This commit is contained in:
ailin-nemui 2019-02-08 14:37:31 +01:00 committed by GitHub
commit a25b4e5db2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -70,7 +70,7 @@ static void sig_layout_restore_item(WINDOW_REC *window, const char *type,
restore_win = window;
protocol = chat_protocol_find(chat_type);
if (protocol == NULL)
if (protocol == NULL || protocol->not_initialized)
window_bind_add(window, tag, name);
else if (protocol->query_create != NULL)
protocol->query_create(tag, name, TRUE);