Changeset

3046:d0db28768980

mod_vcard_muc: Send presence on muc-occupant-session-new event
author Michel Le Bihan <michel@lebihan.pl>
date Sat, 26 May 2018 10:58:06 +0200
parents 3045:26977c4760f5
children 3047:7c55f05327a2
files mod_vcard_muc/mod_vcard_muc.lua
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mod_vcard_muc/mod_vcard_muc.lua	Fri May 25 00:18:46 2018 +0200
+++ b/mod_vcard_muc/mod_vcard_muc.lua	Sat May 26 10:58:06 2018 +0200
@@ -87,5 +87,8 @@
 
 module:hook("muc-disco#info", function(event)
 	event.reply:tag("feature", { var = "vcard-temp" }):up();
-	broadcast_presence(event.room.jid, event.reply.attr.to);
 end);
+
+module:hook("muc-occupant-session-new", function(event)
+	broadcast_presence(event.room.jid, event.jid);
+end)