Software /
code /
prosody-modules
Comparison
mod_vcard_muc/mod_vcard_muc.lua @ 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 |
parent | 3043:6cc44e69443a |
child | 3077:f16b021e8a61 |
comparison
equal
deleted
inserted
replaced
3045:26977c4760f5 | 3046:d0db28768980 |
---|---|
85 module:hook("iq/bare/vcard-temp:vCard", handle_vcard); | 85 module:hook("iq/bare/vcard-temp:vCard", handle_vcard); |
86 module:hook("iq/host/vcard-temp:vCard", handle_vcard); | 86 module:hook("iq/host/vcard-temp:vCard", handle_vcard); |
87 | 87 |
88 module:hook("muc-disco#info", function(event) | 88 module:hook("muc-disco#info", function(event) |
89 event.reply:tag("feature", { var = "vcard-temp" }):up(); | 89 event.reply:tag("feature", { var = "vcard-temp" }):up(); |
90 broadcast_presence(event.room.jid, event.reply.attr.to); | |
91 end); | 90 end); |
91 | |
92 module:hook("muc-occupant-session-new", function(event) | |
93 broadcast_presence(event.room.jid, event.jid); | |
94 end) |