From 75b505cf6a72627bf669d95d40303ee062a1d4b9 Mon Sep 17 00:00:00 2001 From: James Booth Date: Sun, 1 Nov 2015 21:11:30 +0000 Subject: Renamed ui_room_role_change -> mucwin_role_change --- src/event/server_events.c | 2 +- src/ui/mucwin.c | 2 +- src/ui/ui.h | 2 +- tests/unittests/ui/stub_ui.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/event/server_events.c b/src/event/server_events.c index bfac6ddd..af7cf6ca 100644 --- a/src/event/server_events.c +++ b/src/event/server_events.c @@ -592,7 +592,7 @@ sv_ev_muc_self_online(const char *const room, const char *const nick, gboolean c // role changed } else if (g_strcmp0(role, old_role) != 0) { - ui_room_role_change(room, role, actor, reason); + mucwin_role_change(room, role, actor, reason); // affiliation changed } else if (g_strcmp0(affiliation, old_affiliation) != 0) { diff --git a/src/ui/mucwin.c b/src/ui/mucwin.c index 5e54a24d..9a3ae6b3 100644 --- a/src/ui/mucwin.c +++ b/src/ui/mucwin.c @@ -39,7 +39,7 @@ #include "ui/window.h" void -ui_room_role_change(const char *const roomjid, const char *const role, const char *const actor, +mucwin_role_change(const char *const roomjid, const char *const role, 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 52389a11..d9d7b7fb 100644 --- a/src/ui/ui.h +++ b/src/ui/ui.h @@ -92,7 +92,7 @@ void ui_disconnected(void); void ui_outgoing_private_msg(ProfPrivateWin *privwin, const char *const message); void ui_room_join(const char *const roomjid, gboolean focus); void ui_switch_to_room(const char *const roomjid); -void ui_room_role_change(const char *const roomjid, const char *const role, const char *const actor, +void mucwin_role_change(const char *const roomjid, const char *const role, const char *const actor, const char *const reason); void ui_room_affiliation_change(const char *const roomjid, 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 d146341a..7157b0e1 100644 --- a/tests/unittests/ui/stub_ui.c +++ b/tests/unittests/ui/stub_ui.c @@ -191,7 +191,7 @@ void ui_outgoing_private_msg(ProfPrivateWin *privwin, const char * const message void ui_room_join(const char * const roomjid, gboolean focus) {} void ui_switch_to_room(const char * const roomjid) {} -void ui_room_role_change(const char * const roomjid, const char * const role, const char * const actor, +void mucwin_role_change(const char * const roomjid, const char * const role, const char * const actor, const char * const reason) {} void ui_room_affiliation_change(const char * const roomjid, const char * const affiliation, const char * const actor, const char * const reason) {} -- cgit 1.4.1-2-gfad0