diff options
author | James Booth <boothj5@gmail.com> | 2015-11-02 00:59:27 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2015-11-02 00:59:27 +0000 |
commit | 668f92ece2e3be8287f9a742d908bfd96fe6594d (patch) | |
tree | 80ffec9622d595b0e92a7b45229eb83904cb00a6 /src/ui/mucwin.c | |
parent | ce0763e1607b1a6ee70a458f68cf00a44593b54d (diff) | |
download | profani-tty-668f92ece2e3be8287f9a742d908bfd96fe6594d.tar.gz |
mucwin_show_occupants takes ProfMucWin
Diffstat (limited to 'src/ui/mucwin.c')
-rw-r--r-- | src/ui/mucwin.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/ui/mucwin.c b/src/ui/mucwin.c index 777ee461..6406b291 100644 --- a/src/ui/mucwin.c +++ b/src/ui/mucwin.c @@ -761,12 +761,14 @@ mucwin_update_occupants(ProfMucWin *mucwin) } void -mucwin_show_occupants(const char *const roomjid) +mucwin_show_occupants(ProfMucWin *mucwin) { - ProfWin *window = (ProfWin*)wins_get_muc(roomjid); - if (window && !win_has_active_subwin(window)) { + assert(mucwin != NULL); + + ProfWin *window = (ProfWin*)mucwin; + if (!win_has_active_subwin(window)) { wins_show_subwin(window); - occupantswin_occupants(roomjid); + occupantswin_occupants(mucwin->roomjid); } } |