Comparison

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
comparison
equal deleted inserted replaced
11214:5fb6563eee1e 11215:9ce0a899ff07
89 local presence_broadcast = module:require "muc/presence_broadcast"; 89 local presence_broadcast = module:require "muc/presence_broadcast";
90 room_mt.get_presence_broadcast = presence_broadcast.get; 90 room_mt.get_presence_broadcast = presence_broadcast.get;
91 room_mt.set_presence_broadcast = presence_broadcast.set; 91 room_mt.set_presence_broadcast = presence_broadcast.set;
92 room_mt.get_valid_broadcast_roles = presence_broadcast.get_valid_broadcast_roles; 92 room_mt.get_valid_broadcast_roles = presence_broadcast.get_valid_broadcast_roles;
93 93
94 local occupant_id = module:require "muc/occupant_id";
95 room_mt.get_occupant_id = occupant_id.get_occupant_id;
94 96
95 local jid_split = require "util.jid".split; 97 local jid_split = require "util.jid".split;
96 local jid_prep = require "util.jid".prep; 98 local jid_prep = require "util.jid".prep;
97 local jid_bare = require "util.jid".bare; 99 local jid_bare = require "util.jid".bare;
98 local st = require "util.stanza"; 100 local st = require "util.stanza";