diff --git a/src/event/server_events.c b/src/event/server_events.c index f60ef04a..4967a8a3 100644 --- a/src/event/server_events.c +++ b/src/event/server_events.c @@ -667,7 +667,7 @@ sv_ev_muc_occupant_online(const char *const room, const char *const nick, const // affiliation changed } else if (g_strcmp0(affiliation, old_affiliation) != 0) { - ui_room_occupant_affiliation_change(room, nick, affiliation, actor, reason); + mucwin_occupant_affiliation_change(room, nick, affiliation, actor, reason); } } occupantswin_occupants(room); diff --git a/src/ui/mucwin.c b/src/ui/mucwin.c index a825e9b1..e24f67fc 100644 --- a/src/ui/mucwin.c +++ b/src/ui/mucwin.c @@ -100,7 +100,7 @@ mucwin_occupant_role_change(const char *const roomjid, const char *const nick, c } void -ui_room_occupant_affiliation_change(const char *const roomjid, const char *const nick, const char *const affiliation, +mucwin_occupant_affiliation_change(const char *const roomjid, const char *const nick, const char *const affiliation, const char *const actor, const char *const reason) { ProfWin *window = (ProfWin*)wins_get_muc(roomjid); diff --git a/src/ui/ui.h b/src/ui/ui.h index bae70e68..c3a9095b 100644 --- a/src/ui/ui.h +++ b/src/ui/ui.h @@ -100,7 +100,7 @@ void mucwin_role_and_affiliation_change(const char *const roomjid, const char *c const char *const affiliation, const char *const actor, const char *const reason); void mucwin_occupant_role_change(const char *const roomjid, const char *const nick, const char *const role, const char *const actor, const char *const reason); -void ui_room_occupant_affiliation_change(const char *const roomjid, const char *const nick, +void mucwin_occupant_affiliation_change(const char *const roomjid, const char *const nick, const char *const affiliation, const char *const actor, const char *const reason); void ui_room_occupant_role_and_affiliation_change(const char *const roomjid, const char *const nick, const char *const role, const char *const affiliation, const char *const actor, const char *const reason); diff --git a/tests/unittests/ui/stub_ui.c b/tests/unittests/ui/stub_ui.c index be5d9eb5..51de9c51 100644 --- a/tests/unittests/ui/stub_ui.c +++ b/tests/unittests/ui/stub_ui.c @@ -199,7 +199,7 @@ void mucwin_role_and_affiliation_change(const char * const roomjid, const char * const char * const affiliation, const char * const actor, const char * const reason) {} void mucwin_occupant_role_change(const char * const roomjid, const char * const nick, const char * const role, const char * const actor, const char * const reason) {} -void ui_room_occupant_affiliation_change(const char * const roomjid, const char * const nick, const char * const affiliation, +void mucwin_occupant_affiliation_change(const char * const roomjid, const char * const nick, const char * const affiliation, const char * const actor, const char * const reason) {} void ui_room_occupant_role_and_affiliation_change(const char * const roomjid, const char * const nick, const char * const role, const char * const affiliation, const char * const actor, const char * const reason) {}