mirror of
https://github.com/irssi/irssi.git
synced 2024-08-25 04:04:18 -04:00
Merge pull request #13 from ailin-nemui/segfault-no-protocol
fix segfault with xmpp query in layout
This commit is contained in:
commit
3876cd9417
@ -70,7 +70,9 @@ static void sig_layout_restore_item(WINDOW_REC *window, const char *type,
|
||||
restore_win = window;
|
||||
|
||||
protocol = chat_protocol_find(chat_type);
|
||||
if (protocol->query_create != NULL)
|
||||
if (protocol == NULL)
|
||||
window_bind_add(window, tag, name);
|
||||
else if (protocol->query_create != NULL)
|
||||
protocol->query_create(tag, name, TRUE);
|
||||
else {
|
||||
QUERY_REC *query;
|
||||
|
Loading…
Reference in New Issue
Block a user