1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-12-04 14:46:46 -05:00

xep-0084: Improve help

This commit is contained in:
Michael Vetter 2019-12-18 14:35:47 +01:00
parent 795ae00acf
commit 2b6b165ed2
2 changed files with 4 additions and 2 deletions

View File

@ -2322,7 +2322,9 @@ static struct cmd_t command_defs[] =
CMD_SYN(
"/avatar <barejid>")
CMD_DESC(
"Download avatar for a certain contact.")
"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(
{ "<barejid>", "JID to download avatar from."})
CMD_NOEXAMPLES

View File

@ -117,7 +117,7 @@ _avatar_metadata_nofication(xmpp_stanza_t *const stanza, void *const userdata)
xmpp_stanza_t *info = xmpp_stanza_get_child_by_name(metadata, "info");
const char *id = xmpp_stanza_get_id(info);
cons_show("Id for %s is: %s", from, id);
log_debug("Avatar ID for %s is: %s", from, id);
avatar_request_item_by_id(from, id);
}