Software /
code /
prosody
Comparison
plugins/muc/mod_muc.lua @ 8879:4dee8c439afc
MUC: Expose method for creating a bare room object
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 06 Jun 2018 15:26:16 +0200 |
parent | 8877:9182398c64b9 |
child | 8925:d367aeb9c50f |
comparison
equal
deleted
inserted
replaced
8878:7c3e16fdaf1d | 8879:4dee8c439afc |
---|---|
20 error("MUC should be loaded as a component, please see https://prosody.im/doc/components", 0); | 20 error("MUC should be loaded as a component, please see https://prosody.im/doc/components", 0); |
21 end | 21 end |
22 | 22 |
23 local muclib = module:require "muc"; | 23 local muclib = module:require "muc"; |
24 room_mt = muclib.room_mt; -- Yes, global. | 24 room_mt = muclib.room_mt; -- Yes, global. |
25 new_room = muclib.new_room; | |
25 | 26 |
26 local affiliation_notify = module:require "muc/affiliation_notify"; -- luacheck: ignore 211 | 27 local affiliation_notify = module:require "muc/affiliation_notify"; -- luacheck: ignore 211 |
27 | 28 |
28 local name = module:require "muc/name"; | 29 local name = module:require "muc/name"; |
29 room_mt.get_name = name.get; | 30 room_mt.get_name = name.get; |