mirror of
https://github.com/irssi/irssi.git
synced 2026-08-10 20:33:46 +02:00
Don't crash when trying to print text when there's no windows yet. Also
print the text to stdout. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2610 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
7647e3ed4c
commit
7d58cc000f
2 changed files with 9 additions and 2 deletions
|
|
@ -247,7 +247,8 @@ WINDOW_REC *window_find_level(void *server, int level)
|
|||
GSList *tmp;
|
||||
|
||||
/* prefer active window if possible */
|
||||
if (WINDOW_LEVEL_MATCH(active_win, server, level))
|
||||
if (active_win != NULL &&
|
||||
WINDOW_LEVEL_MATCH(active_win, server, level))
|
||||
return active_win;
|
||||
|
||||
for (tmp = windows; tmp != NULL; tmp = tmp->next) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue