about summary refs log tree commit diff stats
path: root/src/ui/mucwin.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2015-11-01 21:50:32 +0000
committerJames Booth <boothj5@gmail.com>2015-11-01 21:50:32 +0000
commit556985ec39685a164b877e597838d16dc2848ea6 (patch)
treecd7f0f7d01ed535d14c660e8489857fd55536ffa /src/ui/mucwin.c
parent2cc5f17871e2fe3c6c8acdf747b4bfb7acc13566 (diff)
downloadprofani-tty-556985ec39685a164b877e597838d16dc2848ea6.tar.gz
Renamed ui_handle_room_role_list -> mucwin_handle_role_list
Diffstat (limited to 'src/ui/mucwin.c')
-rw-r--r--src/ui/mucwin.c68
1 files changed, 34 insertions, 34 deletions
diff --git a/src/ui/mucwin.c b/src/ui/mucwin.c
index f0617ff5..d0e18e70 100644
--- a/src/ui/mucwin.c
+++ b/src/ui/mucwin.c
@@ -651,7 +651,7 @@ mucwin_role_list_error(const char *const roomjid, const char *const role, const
 }
 
 void
-ui_handle_room_role_list(const char *const roomjid, const char *const role, GSList *nicks)
+mucwin_handle_role_list(const char *const roomjid, const char *const role, GSList *nicks)
 {
     ProfWin *window = (ProfWin*)wins_get_muc(roomjid);
     if (window) {
@@ -681,39 +681,6 @@ ui_handle_room_role_list(const char *const roomjid, const char *const role, GSLi
 }
 
 void
-ui_handle_room_affiliation_set_error(const char *const roomjid, const char *const jid, const char *const affiliation,
-    const char *const error)
-{
-    ProfWin *window = (ProfWin*)wins_get_muc(roomjid);
-    if (window) {
-        win_vprint(window, '!', 0, NULL, 0, THEME_ERROR, "", "Error setting %s affiliation for %s: %s", affiliation, jid, error);
-    }
-}
-
-void
-ui_handle_room_role_set_error(const char *const roomjid, const char *const nick, const char *const role,
-    const char *const error)
-{
-    ProfWin *window = (ProfWin*)wins_get_muc(roomjid);
-    if (window) {
-        win_vprint(window, '!', 0, NULL, 0, THEME_ERROR, "", "Error setting %s role for %s: %s", role, nick, error);
-    }
-}
-
-void
-ui_show_room_info(ProfMucWin *mucwin)
-{
-    char *role = muc_role_str(mucwin->roomjid);
-    char *affiliation = muc_affiliation_str(mucwin->roomjid);
-
-    ProfWin *window = (ProfWin*) mucwin;
-    win_vprint(window, '!', 0, NULL, 0, 0, "", "Room: %s", mucwin->roomjid);
-    win_vprint(window, '!', 0, NULL, 0, 0, "", "Affiliation: %s", affiliation);
-    win_vprint(window, '!', 0, NULL, 0, 0, "", "Role: %s", role);
-    win_print(window, '-', 0, NULL, 0, 0, "", "");
-}
-
-void
 ui_show_room_role_list(ProfMucWin *mucwin, muc_role_t role)
 {
     ProfWin *window = (ProfWin*) mucwin;
@@ -768,6 +735,39 @@ ui_show_room_role_list(ProfMucWin *mucwin, muc_role_t role)
 }
 
 void
+ui_handle_room_affiliation_set_error(const char *const roomjid, const char *const jid, const char *const affiliation,
+    const char *const error)
+{
+    ProfWin *window = (ProfWin*)wins_get_muc(roomjid);
+    if (window) {
+        win_vprint(window, '!', 0, NULL, 0, THEME_ERROR, "", "Error setting %s affiliation for %s: %s", affiliation, jid, error);
+    }
+}
+
+void
+ui_handle_room_role_set_error(const char *const roomjid, const char *const nick, const char *const role,
+    const char *const error)
+{
+    ProfWin *window = (ProfWin*)wins_get_muc(roomjid);
+    if (window) {
+        win_vprint(window, '!', 0, NULL, 0, THEME_ERROR, "", "Error setting %s role for %s: %s", role, nick, error);
+    }
+}
+
+void
+ui_show_room_info(ProfMucWin *mucwin)
+{
+    char *role = muc_role_str(mucwin->roomjid);
+    char *affiliation = muc_affiliation_str(mucwin->roomjid);
+
+    ProfWin *window = (ProfWin*) mucwin;
+    win_vprint(window, '!', 0, NULL, 0, 0, "", "Room: %s", mucwin->roomjid);
+    win_vprint(window, '!', 0, NULL, 0, 0, "", "Affiliation: %s", affiliation);
+    win_vprint(window, '!', 0, NULL, 0, 0, "", "Role: %s", role);
+    win_print(window, '-', 0, NULL, 0, 0, "", "");
+}
+
+void
 ui_room_update_occupants(const char *const roomjid)
 {
     ProfWin *window = (ProfWin*)wins_get_muc(roomjid);