From 445452696eb7fff83d67d37acfb79f8cdcd7c844 Mon Sep 17 00:00:00 2001 From: James Booth Date: Sun, 1 Nov 2015 21:23:37 +0000 Subject: [PATCH] Renamed ui_room_member_offline -> mucwin_occupant_offline --- 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 0684903a..433944eb 100644 --- a/src/event/server_events.c +++ b/src/event/server_events.c @@ -486,7 +486,7 @@ sv_ev_room_occupant_offline(const char *const room, const char *const nick, char *muc_status_pref = prefs_get_string(PREF_STATUSES_MUC); if (g_strcmp0(muc_status_pref, "none") != 0) { - ui_room_member_offline(room, nick); + mucwin_occupant_offline(room, nick); } prefs_free_string(muc_status_pref); occupantswin_occupants(room); diff --git a/src/ui/mucwin.c b/src/ui/mucwin.c index d574604c..c3b3d94f 100644 --- a/src/ui/mucwin.c +++ b/src/ui/mucwin.c @@ -221,7 +221,7 @@ mucwin_roster(const char *const roomjid, GList *roster, const char *const presen } void -ui_room_member_offline(const char *const roomjid, const char *const nick) +mucwin_occupant_offline(const char *const roomjid, const char *const nick) { ProfWin *window = (ProfWin*)wins_get_muc(roomjid); if (window == NULL) { diff --git a/src/ui/ui.h b/src/ui/ui.h index adf54b14..50d55428 100644 --- a/src/ui/ui.h +++ b/src/ui/ui.h @@ -126,7 +126,7 @@ void ui_room_member_banned(const char *const roomjid, const char *const nick, co 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 ui_room_member_offline(const char *const roomjid, const char *const nick); +void mucwin_occupant_offline(const char *const roomjid, const char *const nick); void ui_room_member_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); void ui_room_member_nick_change(const char *const roomjid, const char *const old_nick, const char *const nick); diff --git a/tests/unittests/ui/stub_ui.c b/tests/unittests/ui/stub_ui.c index 572dba59..b11fb47d 100644 --- a/tests/unittests/ui/stub_ui.c +++ b/tests/unittests/ui/stub_ui.c @@ -227,7 +227,7 @@ void ui_room_member_banned(const char * const roomjid, const char * const nick, void ui_leave_room(const char * const roomjid) {} void ui_room_broadcast(const char * const roomjid, const char * const message) {} -void ui_room_member_offline(const char * const roomjid, const char * const nick) {} +void mucwin_occupant_offline(const char * const roomjid, const char * const nick) {} void ui_room_member_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) {} void ui_room_member_nick_change(const char * const roomjid,