equal
deleted
inserted
replaced
153 if stanza.name ~= "presence" then |
153 if stanza.name ~= "presence" then |
154 origin.send(st.error_reply(stanza, "cancel", "item-not-found")); |
154 origin.send(st.error_reply(stanza, "cancel", "item-not-found")); |
155 return true; |
155 return true; |
156 end |
156 end |
157 if not(restrict_room_creation) or |
157 if not(restrict_room_creation) or |
158 is_admin(stanza.attr.from)) or |
158 is_admin(stanza.attr.from) or |
159 (restrict_room_creation == "local" and select(2, jid_split(stanza.attr.from)) == module.host:gsub("^[^%.]+%.", "")) then |
159 (restrict_room_creation == "local" and select(2, jid_split(stanza.attr.from)) == module.host:gsub("^[^%.]+%.", "")) then |
160 room = create_room(bare); |
160 room = create_room(bare); |
161 end |
161 end |
162 end |
162 end |
163 if room then |
163 if room then |