diff options
author | James Booth <boothj5@gmail.com> | 2016-01-02 01:45:02 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2016-01-02 01:45:02 +0000 |
commit | f9d89d564fab248e7a0f19229267414d6d426b93 (patch) | |
tree | b0d5b124af0a43ca8d269f4f0d5ace9d56fb747d /src | |
parent | 254c83d2d16037b22c060ed57d3c31de82f4750a (diff) | |
download | profani-tty-f9d89d564fab248e7a0f19229267414d6d426b93.tar.gz |
Check for mucwin before showing room in roster
Diffstat (limited to 'src')
-rw-r--r-- | src/ui/rosterwin.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ui/rosterwin.c b/src/ui/rosterwin.c index b7cf9396..8bbadbcf 100644 --- a/src/ui/rosterwin.c +++ b/src/ui/rosterwin.c @@ -429,7 +429,9 @@ _rosterwin_rooms(ProfLayoutSplit *layout, gboolean newline) GList *curr_room = rooms; while (curr_room) { ProfMucWin *mucwin = wins_get_muc(curr_room->data); - _rosterwin_room(layout, mucwin); + if (mucwin) { + _rosterwin_room(layout, mucwin); + } curr_room = g_list_next(curr_room); } } |