comparison mod_muc_occupant_id/mod_muc_occupant_id.lua @ 3835:5258f0afa8b4

mod_muc_occupant_id: Add <occupant-id/> in presence
author Maxime “pep” Buquet <pep@bouah.net>
date Sat, 04 Jan 2020 19:48:35 +0100
parents 2f189f022b84
children 7440cffe30e2
comparison
equal deleted inserted replaced
3834:2f189f022b84 3835:5258f0afa8b4
44 module:add_feature(xmlns_occupant_id); 44 module:add_feature(xmlns_occupant_id);
45 module:hook("muc-disco#info", function (event) 45 module:hook("muc-disco#info", function (event)
46 event.reply:tag("feature", { var = xmlns_occupant_id }):up(); 46 event.reply:tag("feature", { var = xmlns_occupant_id }):up();
47 end); 47 end);
48 48
49 module:hook("muc-broadcast-presence", update_occupant);
49 module:hook("muc-occupant-pre-join", update_occupant); 50 module:hook("muc-occupant-pre-join", update_occupant);
50 module:hook("muc-occupant-groupchat", update_occupant); 51 module:hook("muc-occupant-groupchat", update_occupant);