diff plugins/muc/mod_muc.lua @ 13905:0e346f4d88ce

MUC: Add get_occupant_id_from_jid() method, which works on real JIDs This is useful to get the occupant ID of someone who is affiliated, but not currently joined to the room.
author Matthew Wild <mwild1@gmail.com>
date Fri, 20 Jun 2025 18:55:39 +0100
parents c6010e1322aa
children 356c8ec22e9a
line wrap: on
line diff
--- a/plugins/muc/mod_muc.lua	Mon Nov 11 12:52:54 2024 +0000
+++ b/plugins/muc/mod_muc.lua	Fri Jun 20 18:55:39 2025 +0100
@@ -100,6 +100,7 @@
 local occupant_id = module:require "muc/occupant_id";
 room_mt.get_salt = occupant_id.get_room_salt;
 room_mt.get_occupant_id = occupant_id.get_occupant_id;
+room_mt.get_occupant_id_from_jid = occupant_id.get_occupant_id_from_jid;
 
 local jid_split = require "prosody.util.jid".split;
 local jid_prep = require "prosody.util.jid".prep;