mirror of
https://github.com/bjc/prosody.git
synced 2025-04-03 05:07:42 +03:00
mod_vcard: Fire event when vcard updated
This commit is contained in:
parent
810b59d50e
commit
eac45d938a
1 changed files with 1 additions and 0 deletions
|
@ -35,6 +35,7 @@ local function handle_vcard(event)
|
|||
if not to then
|
||||
if vcards:set(session.username, st.preserialize(stanza.tags[1])) then
|
||||
session.send(st.reply(stanza));
|
||||
module:fire_event("vcard-updated", event);
|
||||
else
|
||||
-- TODO unable to write file, file may be locked, etc, what's the correct error?
|
||||
session.send(st.error_reply(stanza, "wait", "internal-server-error"));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue