Changeset

13655:6902bb3dd196

mod_vcard: Fire event when vcard updated
author Matthew Wild <mwild1@gmail.com>
date Thu, 06 Feb 2025 17:02:29 +0000
parents 13654:39c35f7e6cfa
children 13656:4298e6565fec
files plugins/mod_vcard.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_vcard.lua	Thu Feb 06 17:02:02 2025 +0000
+++ b/plugins/mod_vcard.lua	Thu Feb 06 17:02:29 2025 +0000
@@ -35,6 +35,7 @@
 		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"));