aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2025-02-06 17:02:29 +0000
committerMatthew Wild <mwild1@gmail.com>2025-02-06 17:02:29 +0000
commiteac45d938aac894a9599f1f9351a364862b5c23d (patch)
tree42d2d4080b3f9e3b3d3372ddb971a4a2e94ba079
parent810b59d50e84ffa0c7da3cd731c40cff6d114921 (diff)
downloadprosody-eac45d938aac894a9599f1f9351a364862b5c23d.tar.gz
prosody-eac45d938aac894a9599f1f9351a364862b5c23d.zip
mod_vcard: Fire event when vcard updated
-rw-r--r--plugins/mod_vcard.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/mod_vcard.lua b/plugins/mod_vcard.lua
index 6b36bdeb..cb3bfdeb 100644
--- a/plugins/mod_vcard.lua
+++ b/plugins/mod_vcard.lua
@@ -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"));