Mercurial > prosody-modules
comparison mod_muc_occupant_id/mod_muc_occupant_id.lua @ 3837:7440cffe30e2
mod_muc_occupant_id: Add TODO about MUC-PMs
author | Maxime “pep” Buquet <pep@bouah.net> |
---|---|
date | Mon, 06 Jan 2020 16:43:15 +0100 |
parents | 5258f0afa8b4 |
children | d14fc974efbc |
comparison
equal
deleted
inserted
replaced
3836:070faeaf51bc | 3837:7440cffe30e2 |
---|---|
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 -- TODO: Handle MUC-PMs | |
49 module:hook("muc-broadcast-presence", update_occupant); | 50 module:hook("muc-broadcast-presence", update_occupant); |
50 module:hook("muc-occupant-pre-join", update_occupant); | 51 module:hook("muc-occupant-pre-join", update_occupant); |
51 module:hook("muc-occupant-groupchat", update_occupant); | 52 module:hook("muc-occupant-groupchat", update_occupant); |