plugins/muc/members_only.lib.lua
changeset 9038 173c0e16e704
parent 9037 1c709e3d2e5e
child 9720 5281a795d6df
equal deleted inserted replaced
9037:1c709e3d2e5e 9038:173c0e16e704
    83 		name = "{http://prosody.im/protocol/muc}roomconfig_allowmemberinvites";
    83 		name = "{http://prosody.im/protocol/muc}roomconfig_allowmemberinvites";
    84 		type = "boolean";
    84 		type = "boolean";
    85 		label = "Allow members to invite new members";
    85 		label = "Allow members to invite new members";
    86 		value = get_allow_member_invites(event.room);
    86 		value = get_allow_member_invites(event.room);
    87 	});
    87 	});
    88 end, 100-6);
    88 end, 90-3);
    89 
    89 
    90 module:hook("muc-config-submitted/muc#roomconfig_membersonly", function(event)
    90 module:hook("muc-config-submitted/muc#roomconfig_membersonly", function(event)
    91 	if set_members_only(event.room, event.value) then
    91 	if set_members_only(event.room, event.value) then
    92 		event.status_codes["104"] = true;
    92 		event.status_codes["104"] = true;
    93 	end
    93 	end