mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-20 17:26:20 +00:00
Merge pull request #1714 from MarcoPolo-PasTonMolo/feature/avatar-set
Add `/avatar set` command to publish avatar
This commit is contained in:
@@ -2443,16 +2443,20 @@ static struct cmd_t command_defs[] = {
|
||||
CMD_TAGS(
|
||||
CMD_TAG_CHAT)
|
||||
CMD_SYN(
|
||||
"/avatar set <path>",
|
||||
"/avatar get <barejid>",
|
||||
"/avatar open <barejid>")
|
||||
CMD_DESC(
|
||||
"Upload avatar for oneself (XEP-0084). "
|
||||
"Download avatar (XEP-0084) for a certain contact. "
|
||||
"If nothing happens after using this command the user either doesn't have an avatar set at all "
|
||||
"or doesn't use XEP-0084 to publish it.")
|
||||
CMD_ARGS(
|
||||
{ "set <path>", "Set avatar to the image at <path>." },
|
||||
{ "get <barejid>", "Download the avatar. barejid is the JID to download avatar from." },
|
||||
{ "open <barejid>", "Download avatar and open it with command." })
|
||||
CMD_EXAMPLES(
|
||||
"/avatar set ~/images/avatar.png",
|
||||
"/avatar get thor@valhalla.edda",
|
||||
"/avatar open freyja@vanaheimr.edda") },
|
||||
|
||||
|
||||
Reference in New Issue
Block a user