about summary refs log tree commit diff stats
path: root/src/command/cmd_funcs.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/command/cmd_funcs.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/command/cmd_funcs.c')
-rw-r--r--src/command/cmd_funcs.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/command/cmd_funcs.c b/src/command/cmd_funcs.c
index d9fc0ed6..a0d40cdd 100644
--- a/src/command/cmd_funcs.c
+++ b/src/command/cmd_funcs.c
@@ -8640,3 +8640,11 @@ cmd_avatar(ProfWin *window, const char *const command, gchar **args)
 
     return TRUE;
 }
+
+gboolean
+cmd_os(ProfWin *window, const char *const command, gchar **args)
+{
+    _cmd_set_boolean_preference(args[0], command, "Revealing OS name", PREF_REVEAL_OS);
+
+    return TRUE;
+}