about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2013-05-19 02:15:35 +0100
committerJames Booth <boothj5@gmail.com>2013-05-19 02:15:35 +0100
commit6c4b21beb1d52067589a40490b1e4b19c38b0ee8 (patch)
tree38bb3ec8b18aed95fa4973976c6292fb402d3029
parentd300e8e763420e826578d1c6395b29a9ca6db8d9 (diff)
downloadprofani-tty-6c4b21beb1d52067589a40490b1e4b19c38b0ee8.tar.gz
Added sub to /notify preferences output
Removed unused "status" value for /notify autocompleter
-rw-r--r--src/command/command.c1
-rw-r--r--src/ui/console.c17
2 files changed, 11 insertions, 7 deletions
diff --git a/src/command/command.c b/src/command/command.c
index 281c303f..444deb1d 100644
--- a/src/command/command.c
+++ b/src/command/command.c
@@ -853,7 +853,6 @@ cmd_init(void)
     autocomplete_add(notify_ac, strdup("remind"));
     autocomplete_add(notify_ac, strdup("invite"));
     autocomplete_add(notify_ac, strdup("sub"));
-    autocomplete_add(notify_ac, strdup("status"));
 
     sub_ac = autocomplete_new();
     autocomplete_add(sub_ac, strdup("request"));
diff --git a/src/ui/console.c b/src/ui/console.c
index ee49a0fc..77000bc8 100644
--- a/src/ui/console.c
+++ b/src/ui/console.c
@@ -946,19 +946,24 @@ cons_show_desktop_prefs(void)
     cons_show("");
 
     if (prefs_get_boolean(PREF_NOTIFY_MESSAGE))
-        cons_show("Messages (/notify message)       : ON");
+        cons_show("Messages (/notify message)          : ON");
     else
-        cons_show("Messages (/notify message)       : OFF");
+        cons_show("Messages (/notify message)          : OFF");
 
     if (prefs_get_boolean(PREF_NOTIFY_TYPING))
-        cons_show("Composing (/notify typing)       : ON");
+        cons_show("Composing (/notify typing)          : ON");
     else
-        cons_show("Composing (/notify typing)       : OFF");
+        cons_show("Composing (/notify typing)          : OFF");
 
     if (prefs_get_boolean(PREF_NOTIFY_INVITE))
-        cons_show("Room invites (/notify invite)    : ON");
+        cons_show("Room invites (/notify invite)       : ON");
     else
-        cons_show("Room invites (/notify invite)    : OFF");
+        cons_show("Room invites (/notify invite)       : OFF");
+
+    if (prefs_get_boolean(PREF_NOTIFY_SUB))
+        cons_show("Subscription requests (/notify sub) : ON");
+    else
+        cons_show("Subscription requests (/notify sub) : OFF");
 
     gint remind_period = prefs_get_notify_remind();
     if (remind_period == 0) {