mirror of
https://github.com/irssi/irssi.git
synced 2024-11-03 04:27:19 -05:00
do not touch uninitialised protocols on item restore
This commit is contained in:
parent
aa80f1de61
commit
9f9aada83b
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user