about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2013-01-15 20:05:26 +0000
committerJames Booth <boothj5@gmail.com>2013-01-15 20:05:26 +0000
commit6c7b7004da2b755fe22efcac3d8097a14d831c25 (patch)
tree870c57223ce4d13ee8bfcec43e4f20a24725eb8e /src
parentfb9fc6529a7c4c9f7c7bfd3471bec5edb5154c49 (diff)
downloadprofani-tty-6c7b7004da2b755fe22efcac3d8097a14d831c25.tar.gz
Show time with room broadcasts
Diffstat (limited to 'src')
-rw-r--r--src/windows.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/windows.c b/src/windows.c
index 51322de2..26c20790 100644
--- a/src/windows.c
+++ b/src/windows.c
@@ -817,13 +817,14 @@ win_show_room_roster(const char * const room)
 
     GList *roster = muc_get_roster(room);
 
+    _win_show_time(win);
     if ((roster == NULL) || (g_list_length(roster) == 0)) {
         wattron(win, COLOUR_ROOMINFO);
-        wprintw(win, "You are alone!\n");
+        wprintw(win, "Room is empty.\n");
         wattroff(win, COLOUR_ROOMINFO);
     } else {
         wattron(win, COLOUR_ROOMINFO);
-        wprintw(win, "Room occupants:\n");
+        wprintw(win, "Participants: ");
         wattroff(win, COLOUR_ROOMINFO);
         wattron(win, COLOUR_ONLINE);
 
@@ -1050,6 +1051,7 @@ win_show_room_subject(const char * const room_jid, const char * const subject)
     int win_index = _find_prof_win_index(room_jid);
     WINDOW *win = windows[win_index]->win;
 
+    _win_show_time(win);
     wattron(win, COLOUR_ROOMINFO);
     wprintw(win, "Room subject: ");
     wattroff(win, COLOUR_ROOMINFO);
@@ -1072,6 +1074,7 @@ win_show_room_broadcast(const char * const room_jid, const char * const message)
     int win_index = _find_prof_win_index(room_jid);
     WINDOW *win = windows[win_index]->win;
 
+    _win_show_time(win);
     wattron(win, COLOUR_ROOMINFO);
     wprintw(win, "Room message: ");
     wattroff(win, COLOUR_ROOMINFO);