diff options
author | Michael Vetter <jubalh@iodoru.org> | 2022-05-30 18:01:50 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-30 18:01:50 +0200 |
commit | 010ed78b32a501395476ec98cab5cdff4c32fb12 (patch) | |
tree | f4e60f72f6af4933cb9306ae3d3097872463ffdd /src/command/cmd_defs.c | |
parent | d9e39b596b32a439b744673277503143a3760174 (diff) | |
parent | 3aafffded93458d47b477cacd7ca4c80750bc3e0 (diff) | |
download | profani-tty-010ed78b32a501395476ec98cab5cdff4c32fb12.tar.gz |
Merge pull request #1714 from MarcoPolo-PasTonMolo/feature/avatar-set
Add `/avatar set` command to publish avatar
Diffstat (limited to 'src/command/cmd_defs.c')
-rw-r--r-- | src/command/cmd_defs.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/command/cmd_defs.c b/src/command/cmd_defs.c index b6053e12..57d90226 100644 --- a/src/command/cmd_defs.c +++ b/src/command/cmd_defs.c @@ -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") }, |