mirror of
https://github.com/irssi/irssi.git
synced 2026-08-17 23:52:22 +02:00
fix segfault with xmpp query in layout
This commit is contained in:
parent
a6507f827b
commit
d4a7d64994
1 changed files with 3 additions and 1 deletions
|
|
@ -70,7 +70,9 @@ static void sig_layout_restore_item(WINDOW_REC *window, const char *type,
|
||||||
restore_win = window;
|
restore_win = window;
|
||||||
|
|
||||||
protocol = chat_protocol_find(chat_type);
|
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);
|
protocol->query_create(tag, name, TRUE);
|
||||||
else {
|
else {
|
||||||
QUERY_REC *query;
|
QUERY_REC *query;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue