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.
This commit is contained in:
Michael Vetter
2020-01-24 19:27:42 +01:00
parent 3c0647ec70
commit 4bc82a5318
6 changed files with 36 additions and 1 deletions

View File

@@ -2344,6 +2344,21 @@ static struct cmd_t command_defs[] =
{ "<barejid>", "JID to download avatar from."})
CMD_NOEXAMPLES
},
{ "/os",
parse_args, 1, 1, &cons_os_setting,
CMD_NOSUBFUNCS
CMD_MAINFUNC(cmd_os)
CMD_TAGS(
CMD_TAG_DISCOVERY)
CMD_SYN(
"/os <on>|<off>")
CMD_DESC(
"Choose whether to include the OS name if a user asks for software information (XEP-0092).")
CMD_ARGS(
{ "on|off", ""})
CMD_NOEXAMPLES
},
};
static GHashTable *search_index;