From 5d3c8ce7c164f74f606ff06d1adf849821591a51 Mon Sep 17 00:00:00 2001 From: John Hernandez <129467592+H3rnand3zzz@users.noreply.github.com> Date: Mon, 3 Apr 2023 17:58:09 +0200 Subject: Allow setting client identification name/version manually Add changes allowing user to switch client name and version. Useful for enhancing user privacy. Minor cleanup. --- src/command/cmd_ac.c | 2 ++ src/command/cmd_defs.c | 5 +++++ src/command/cmd_funcs.c | 26 ++++++++++++++------------ 3 files changed, 21 insertions(+), 12 deletions(-) (limited to 'src/command') diff --git a/src/command/cmd_ac.c b/src/command/cmd_ac.c index 8654a07b..13c8f09d 100644 --- a/src/command/cmd_ac.c +++ b/src/command/cmd_ac.c @@ -478,6 +478,7 @@ cmd_ac_init(void) autocomplete_add(account_set_ac, "otr"); autocomplete_add(account_set_ac, "pgpkeyid"); autocomplete_add(account_set_ac, "startscript"); + autocomplete_add(account_set_ac, "clientid"); autocomplete_add(account_set_ac, "tls"); autocomplete_add(account_set_ac, "auth"); autocomplete_add(account_set_ac, "theme"); @@ -490,6 +491,7 @@ cmd_ac_init(void) autocomplete_add(account_clear_ac, "otr"); autocomplete_add(account_clear_ac, "pgpkeyid"); autocomplete_add(account_clear_ac, "startscript"); + autocomplete_add(account_clear_ac, "clientid"); autocomplete_add(account_clear_ac, "theme"); autocomplete_add(account_clear_ac, "muc"); autocomplete_add(account_clear_ac, "resource"); diff --git a/src/command/cmd_defs.c b/src/command/cmd_defs.c index d204db3b..60c1c971 100644 --- a/src/command/cmd_defs.c +++ b/src/command/cmd_defs.c @@ -2063,6 +2063,7 @@ static const struct cmd_t command_defs[] = { "/account set otr ", "/account set pgpkeyid ", "/account set startscript