Diff

plugins/muc/mod_muc.lua @ 11215:9ce0a899ff07

MUC: Merge mod_muc_occupant_id into a sub-module (thanks pep.!)
author Matthew Wild <mwild1@gmail.com>
date Tue, 24 Nov 2020 10:38:56 +0000
parent 11057:13eee48071c8
child 11492:6da8d9cb355d
line wrap: on
line diff
--- a/plugins/muc/mod_muc.lua	Mon Nov 23 21:56:26 2020 +0100
+++ b/plugins/muc/mod_muc.lua	Tue Nov 24 10:38:56 2020 +0000
@@ -91,6 +91,8 @@
 room_mt.set_presence_broadcast = presence_broadcast.set;
 room_mt.get_valid_broadcast_roles = presence_broadcast.get_valid_broadcast_roles;
 
+local occupant_id = module:require "muc/occupant_id";
+room_mt.get_occupant_id = occupant_id.get_occupant_id;
 
 local jid_split = require "util.jid".split;
 local jid_prep = require "util.jid".prep;