diff --git a/src/command/commands.c b/src/command/commands.c index 7ca7149c..540300de 100644 --- a/src/command/commands.c +++ b/src/command/commands.c @@ -3180,7 +3180,7 @@ cmd_occupants(ProfWin *window, const char *const command, gchar **args) mucwin->showjid = FALSE; mucwin_update_occupants(mucwin->roomjid); } else { - ui_room_hide_occupants(mucwin->roomjid); + mucwin_hide_occupants(mucwin->roomjid); } } else { cons_bad_cmd_usage(command); diff --git a/src/ui/core.c b/src/ui/core.c index 2ae9616a..b6cc5b3c 100644 --- a/src/ui/core.c +++ b/src/ui/core.c @@ -647,7 +647,7 @@ ui_hide_all_room_rosters(void) if (window->type == WIN_MUC && win_has_active_subwin(window)) { ProfMucWin *mucwin = (ProfMucWin*)window; assert(mucwin->memcheck == PROFMUCWIN_MEMCHECK); - ui_room_hide_occupants(mucwin->roomjid); + mucwin_hide_occupants(mucwin->roomjid); } curr = g_list_next(curr); } diff --git a/src/ui/mucwin.c b/src/ui/mucwin.c index 2d6cbd68..2e722585 100644 --- a/src/ui/mucwin.c +++ b/src/ui/mucwin.c @@ -787,7 +787,7 @@ mucwin_show_occupants(const char *const roomjid) } void -ui_room_hide_occupants(const char *const roomjid) +mucwin_hide_occupants(const char *const roomjid) { ProfWin *window = (ProfWin*)wins_get_muc(roomjid); if (window && win_has_active_subwin(window)) { diff --git a/src/ui/ui.h b/src/ui/ui.h index d1fc08f0..ba713c4f 100644 --- a/src/ui/ui.h +++ b/src/ui/ui.h @@ -135,7 +135,7 @@ void mucwin_occupant_presence(const char *const roomjid, const char *const nick, const char *const status); void mucwin_update_occupants(const char *const roomjid); void mucwin_show_occupants(const char *const roomjid); -void ui_room_hide_occupants(const char *const roomjid); +void mucwin_hide_occupants(const char *const roomjid); void ui_show_roster(void); void ui_hide_roster(void); void ui_roster_add(const char *const barejid, const char *const name); diff --git a/tests/unittests/ui/stub_ui.c b/tests/unittests/ui/stub_ui.c index f8e072ff..9a3f704a 100644 --- a/tests/unittests/ui/stub_ui.c +++ b/tests/unittests/ui/stub_ui.c @@ -237,7 +237,7 @@ void mucwin_occupant_presence(const char * const roomjid, const char * const nick, const char * const show, const char * const status) {} void mucwin_update_occupants(const char * const roomjid) {} void mucwin_show_occupants(const char * const roomjid) {} -void ui_room_hide_occupants(const char * const roomjid) {} +void mucwin_hide_occupants(const char * const roomjid) {} void ui_show_roster(void) {} void ui_hide_roster(void) {} void ui_roster_add(const char * const barejid, const char * const name) {}