about summary refs log tree commit diff stats
path: root/src/ui
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/core.c8
-rw-r--r--src/ui/ui.h2
2 files changed, 10 insertions, 0 deletions
diff --git a/src/ui/core.c b/src/ui/core.c
index eed865bb..5331e91f 100644
--- a/src/ui/core.c
+++ b/src/ui/core.c
@@ -1352,6 +1352,13 @@ _ui_room_affiliation_change(const char * const room, const char * const affiliat
 }
 
 static void
+_ui_room_role_and_affiliation_change(const char * const room, const char * const role, const char * const affiliation)
+{
+    ProfWin *window = wins_get_by_recipient(room);
+    win_save_vprint(window, '!', NULL, 0, COLOUR_ROOMINFO, "", "Your role and affiliation have been changed, role: %s, affiliation: %s", role, affiliation);
+}
+
+static void
 _ui_handle_room_info_error(const char * const room, const char * const error)
 {
     ProfWin *window = wins_get_by_recipient(room);
@@ -3076,5 +3083,6 @@ ui_init_module(void)
     ui_room_role_change = _ui_room_role_change;
     ui_room_affiliation_change = _ui_room_affiliation_change;
     ui_switch_to_room = _ui_switch_to_room;
+    ui_room_role_and_affiliation_change = _ui_room_role_and_affiliation_change;
 }
 
diff --git a/src/ui/ui.h b/src/ui/ui.h
index 46582549..ed0f5764 100644
--- a/src/ui/ui.h
+++ b/src/ui/ui.h
@@ -133,6 +133,8 @@ void (*ui_room_join)(const char * const room, gboolean focus);
 void (*ui_switch_to_room)(const char * const room);
 void (*ui_room_role_change)(const char * const room, const char * const role);
 void (*ui_room_affiliation_change)(const char * const room, const char * const affiliation);
+void (*ui_room_role_and_affiliation_change)(const char * const room, const char * const role,
+    const char * const affiliation);
 void (*ui_room_roster)(const char * const room, GList *roster, const char * const presence);
 void (*ui_room_history)(const char * const room_jid, const char * const nick,
     GTimeVal tv_stamp, const char * const message);