about summary refs log tree commit diff stats
path: root/src/profanity.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/profanity.c')
-rw-r--r--src/profanity.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/profanity.c b/src/profanity.c
index 71ff971e..a91a80d1 100644
--- a/src/profanity.c
+++ b/src/profanity.c
@@ -401,6 +401,20 @@ prof_handle_version_result(const char * const jid, const char * const  presence,
     win_current_page_off();
 }
 
+void
+prof_handle_room_list(GSList *rooms, const char *conference_node)
+{
+    if ((rooms != NULL) && (g_slist_length(rooms) > 0)) {
+        cons_show("Chat rooms at %s:", conference_node);
+        while (rooms != NULL) {
+            cons_show("  %s", rooms->data);
+            rooms = g_slist_next(rooms);
+        }
+    } else {
+        cons_show("No chat rooms at %s", conference_node);
+    }
+}
+
 /*
  * Take a line of input and process it, return TRUE if profanity is to
  * continue, FALSE otherwise