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

@@ -1508,7 +1508,7 @@ _cmd_ac_complete_params(ProfWin *window, const char *const input, gboolean previ
// autocomplete boolean settings
gchar *boolean_choices[] = { "/beep", "/intype", "/states", "/outtype", "/flash", "/splash",
"/history", "/vercheck", "/privileges", "/wrap", "/carbons", "/lastactivity"};
"/history", "/vercheck", "/privileges", "/wrap", "/carbons", "/lastactivity", "/os"};
for (i = 0; i < ARRAY_SIZE(boolean_choices); i++) {
result = autocomplete_param_with_func(input, boolean_choices[i], prefs_autocomplete_boolean_choice, previous);