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:
parent
795ae00acf
commit
2b6b165ed2
@ -2322,7 +2322,9 @@ static struct cmd_t command_defs[] =
|
|||||||
CMD_SYN(
|
CMD_SYN(
|
||||||
"/avatar <barejid>")
|
"/avatar <barejid>")
|
||||||
CMD_DESC(
|
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(
|
CMD_ARGS(
|
||||||
{ "<barejid>", "JID to download avatar from."})
|
{ "<barejid>", "JID to download avatar from."})
|
||||||
CMD_NOEXAMPLES
|
CMD_NOEXAMPLES
|
||||||
|
@ -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");
|
xmpp_stanza_t *info = xmpp_stanza_get_child_by_name(metadata, "info");
|
||||||
const char *id = xmpp_stanza_get_id(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);
|
avatar_request_item_by_id(from, id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user