Comparison

plugins/muc/mod_muc.lua @ 8976:92f0876b9230

MUC: Add config option to allow members to invite other members to the room (previously only owners/admins could do this)
author Matthew Wild <mwild1@gmail.com>
date Fri, 06 Jul 2018 15:33:46 +0100
parent 8944:200ec7d38a0e
child 8977:f4030a506d6b
comparison
equal deleted inserted replaced
8975:47dd2e850781 8976:92f0876b9230
51 room_mt.set_password = password.set; 51 room_mt.set_password = password.set;
52 52
53 local members_only = module:require "muc/members_only"; 53 local members_only = module:require "muc/members_only";
54 room_mt.get_members_only = members_only.get; 54 room_mt.get_members_only = members_only.get;
55 room_mt.set_members_only = members_only.set; 55 room_mt.set_members_only = members_only.set;
56 room_mt.get_allow_member_invites = members_only.get_allow_member_invites;
57 room_mt.set_allow_member_invites = members_only.set_allow_member_invites;
56 58
57 local moderated = module:require "muc/moderated"; 59 local moderated = module:require "muc/moderated";
58 room_mt.get_moderated = moderated.get; 60 room_mt.get_moderated = moderated.get;
59 room_mt.set_moderated = moderated.set; 61 room_mt.set_moderated = moderated.set;
60 62