about summary refs log tree commit diff stats
path: root/src/ui/console.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2016-01-17 01:49:16 +0000
committerJames Booth <boothj5@gmail.com>2016-01-17 01:49:16 +0000
commite58be44f8185a0fbb43a3ee902acf21c89b158b6 (patch)
treee346d021c16caa12b2b7bed645926ad4f3adfbad /src/ui/console.c
parent56751e896bf60e1305d99ed9f827279ac9cc25d3 (diff)
downloadprofani-tty-e58be44f8185a0fbb43a3ee902acf21c89b158b6.tar.gz
Added /roster room unread preference
closes ##708
Diffstat (limited to 'src/ui/console.c')
-rw-r--r--src/ui/console.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/ui/console.c b/src/ui/console.c
index 42001960..4656b4e3 100644
--- a/src/ui/console.c
+++ b/src/ui/console.c
@@ -1341,6 +1341,15 @@ cons_roster_setting(void)
     cons_show("Roster rooms order (/roster)     : %s", rooms_order);
     prefs_free_string(rooms_order);
 
+    char *roomsunread = prefs_get_string(PREF_ROSTER_ROOMS_UNREAD);
+    if (g_strcmp0(roomsunread, "before") == 0) {
+        cons_show("Roster rooms unread (/roster)    : before");
+    } else if (g_strcmp0(roomsunread, "after") == 0) {
+        cons_show("Roster rooms unread (/roster)    : after");
+    } else {
+        cons_show("Roster rooms unread (/roster)    : OFF");
+    }
+
     int size = prefs_get_roster_size();
     cons_show("Roster size (/roster)            : %d", size);