xep-0084/avatar: add option to open avatar directly

Change:
`/avatar me@somewhere.org` -> `/avatar get me@somewhere.org`

New:
`/avatar cmd feh`
`/avatar open me@somewhere.org`

Implement https://github.com/profanity-im/profanity/issues/1281
This commit is contained in:
Michael Vetter
2020-03-10 07:12:13 +01:00
parent 7e62d458ee
commit 52e7e596aa
9 changed files with 88 additions and 9 deletions

View File

@@ -2039,6 +2039,16 @@ cons_correction_setting(void)
free(cc);
}
void
cons_avatar_setting(void)
{
char *pref = prefs_get_string(PREF_AVATAR_CMD);
cons_show("Avatar command (/avatar cmd) : %s", pref);
prefs_free_string(pref);
}
void
cons_show_connection_prefs(void)
{