ui: fix condition

Fix mistake in a condition. Also add sanity check to
win_refresh_with_subwin().
This commit is contained in:
Dmitry Podgorny
2020-04-23 14:30:49 +03:00
parent 4a712fcc7b
commit 4672d0ca19
2 changed files with 4 additions and 2 deletions

View File

@@ -743,8 +743,7 @@ wins_show_subwin(ProfWin *window)
win_show_subwin(window);
// only mucwin and console have occupants/roster subwin
if (window->type != WIN_MUC ||
window->type != WIN_CONSOLE) {
if (window->type != WIN_MUC && window->type != WIN_CONSOLE) {
return;
}