about summary refs log tree commit diff stats
path: root/src/ui/console.c
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2020-01-24 19:27:42 +0100
committerMichael Vetter <jubalh@iodoru.org>2020-01-24 19:27:42 +0100
commit4bc82a5318d1d7df4e8fa817af259554ec776fa3 (patch)
treecdf1e9c474275c3acd671a643cc506fb741e8e98 /src/ui/console.c
parent3c0647ec704189a10b341f3e52b8bb78c4b030be (diff)
downloadprofani-tty-4bc82a5318d1d7df4e8fa817af259554ec776fa3.tar.gz
XEP-0092: Add configuration option to choose whether to send OS name
`/os on|off` now let's one choose whether to include the OS name once
`/software` (XEP-0092) is ran on us.
Diffstat (limited to 'src/ui/console.c')
-rw-r--r--src/ui/console.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/ui/console.c b/src/ui/console.c
index 49103fcf..1a716a7a 100644
--- a/src/ui/console.c
+++ b/src/ui/console.c
@@ -2012,6 +2012,16 @@ cons_color_setting(void)
 }
 
 void
+cons_os_setting(void)
+{
+    if (prefs_get_boolean(PREF_REVEAL_OS)) {
+        cons_show("Reveal OS name when asked for software version (XEP-0092) (/os)    : ON");
+    } else {
+        cons_show("Reveal OS name when asked for software version (XEP-0092) (/os)    : OFF");
+    }
+}
+
+void
 cons_show_connection_prefs(void)
 {
     cons_show("Connection preferences:");