# HG changeset patch # User Matthew Wild # Date 1386939123 0 # Node ID deb261fb5c042eb4ec9a9d51590ea4bf8b2634df # Parent bcad61007a4eede1c0cdf1695916a0f9c31129a7 mod_muc: Allow admins to always bypass restrict_room_creation (thanks Chris B) diff -r bcad61007a4e -r deb261fb5c04 plugins/muc/mod_muc.lua --- a/plugins/muc/mod_muc.lua Fri Dec 13 10:25:40 2013 +0100 +++ b/plugins/muc/mod_muc.lua Fri Dec 13 12:52:03 2013 +0000 @@ -155,7 +155,7 @@ return true; end if not(restrict_room_creation) or - (restrict_room_creation == "admin" and is_admin(stanza.attr.from)) or + is_admin(stanza.attr.from)) or (restrict_room_creation == "local" and select(2, jid_split(stanza.attr.from)) == module.host:gsub("^[^%.]+%.", "")) then room = create_room(bare); end