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/console.c5
-rw-r--r--src/ui/rosterwin.c3
2 files changed, 8 insertions, 0 deletions
diff --git a/src/ui/console.c b/src/ui/console.c
index b145aa6d..64eff932 100644
--- a/src/ui/console.c
+++ b/src/ui/console.c
@@ -1227,6 +1227,11 @@ cons_roster_setting(void)
     else
         cons_show("Roster count (/roster)        : hide");
 
+    if (prefs_get_boolean(PREF_ROSTER_PRIORITY))
+        cons_show("Roster priority (/roster)     : show");
+    else
+        cons_show("Roster priority (/roster)     : hide");
+
     char *by = prefs_get_string(PREF_ROSTER_BY);
     cons_show("Roster by (/roster)           : %s", by);
     prefs_free_string(by);
diff --git a/src/ui/rosterwin.c b/src/ui/rosterwin.c
index 28ac25ce..6d51adf9 100644
--- a/src/ui/rosterwin.c
+++ b/src/ui/rosterwin.c
@@ -89,6 +89,9 @@ _rosterwin_resource(ProfLayoutSplit *layout, PContact contact)
             wattron(layout->subwin, theme_attrs(resource_presence_colour));
             GString *msg = g_string_new("     ");
             g_string_append(msg, resource->name);
+            if (prefs_get_boolean(PREF_ROSTER_PRIORITY)) {
+                g_string_append_printf(msg, " [%d]", resource->priority);
+            }
             win_printline_nowrap(layout->subwin, msg->str);
             g_string_free(msg, TRUE);
             wattroff(layout->subwin, theme_attrs(resource_presence_colour));