Changeset

9672:e71484c210fb 0.11

mod_vcard_legacy: Limit injection of XEP-0153 to normal presence (fixes #1252)
author Kim Alvefur <zash@zash.se>
date Sat, 01 Dec 2018 00:11:49 +0100
parents 9665:4790d1b88919
children 9673:e7e75b091c96
files plugins/mod_vcard_legacy.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_vcard_legacy.lua	Fri Nov 30 19:40:39 2018 +0100
+++ b/plugins/mod_vcard_legacy.lua	Sat Dec 01 00:11:49 2018 +0100
@@ -274,6 +274,7 @@
 	local origin, stanza = event.origin, event.stanza;
 	local username = origin.username;
 	if not username then return end
+	if stanza.attr.type then return end
 	local pep_service = mod_pep.get_pep_service(username);
 
 	stanza:remove_children("x", "vcard-temp:x:update");