diff --git a/src/event/server_events.c b/src/event/server_events.c index dc28867e..7d39267b 100644 --- a/src/event/server_events.c +++ b/src/event/server_events.c @@ -136,7 +136,7 @@ void sv_ev_room_broadcast(const char *const room_jid, const char *const message) { if (muc_roster_complete(room_jid)) { - ui_room_broadcast(room_jid, message); + mucwin_broadcast(room_jid, message); } else { muc_pending_broadcasts_add(room_jid, message); } @@ -572,7 +572,7 @@ sv_ev_muc_self_online(const char *const room, const char *const nick, gboolean c if (pending_broadcasts) { GList *curr = pending_broadcasts; while (curr) { - ui_room_broadcast(room, curr->data); + mucwin_broadcast(room, curr->data); curr = g_list_next(curr); } } diff --git a/src/ui/mucwin.c b/src/ui/mucwin.c index 058565a2..8b1cbd68 100644 --- a/src/ui/mucwin.c +++ b/src/ui/mucwin.c @@ -528,7 +528,7 @@ mucwin_kick_error(const char *const roomjid, const char *const nick, const char } void -ui_room_broadcast(const char *const roomjid, const char *const message) +mucwin_broadcast(const char *const roomjid, const char *const message) { ProfWin *window = (ProfWin*)wins_get_muc(roomjid); if (window == NULL) { diff --git a/src/ui/ui.h b/src/ui/ui.h index d8ca5b8c..c3bcbac1 100644 --- a/src/ui/ui.h +++ b/src/ui/ui.h @@ -125,7 +125,7 @@ void ui_room_banned(const char *const roomjid, const char *const actor, const ch void mucwin_occupant_banned(const char *const roomjid, const char *const nick, const char *const actor, const char *const reason); void ui_leave_room(const char *const roomjid); -void ui_room_broadcast(const char *const roomjid, const char *const message); +void mucwin_broadcast(const char *const roomjid, const char *const message); void mucwin_occupant_offline(const char *const roomjid, const char *const nick); void mucwin_occupant_online(const char *const roomjid, const char *const nick, const char *const roles, const char *const affiliation, const char *const show, const char *const status); diff --git a/tests/unittests/ui/stub_ui.c b/tests/unittests/ui/stub_ui.c index 8fdc6b98..1dc6843b 100644 --- a/tests/unittests/ui/stub_ui.c +++ b/tests/unittests/ui/stub_ui.c @@ -225,7 +225,7 @@ void ui_room_banned(const char * const roomjid, const char * const actor, const void mucwin_occupant_banned(const char * const roomjid, const char * const nick, const char * const actor, const char * const reason) {} void ui_leave_room(const char * const roomjid) {} -void ui_room_broadcast(const char * const roomjid, +void mucwin_broadcast(const char * const roomjid, const char * const message) {} void mucwin_occupant_offline(const char * const roomjid, const char * const nick) {} void mucwin_occupant_online(const char * const roomjid, const char * const nick, const char * const roles,