Merge 0.9->0.10
[prosody.git] / plugins / muc / mod_muc.lua
index cb967c908a0f7b369ceee91183d642c498cbaf4a..38c97d6128828ffda3faae96912eed29054576a6 100644 (file)
@@ -164,7 +164,7 @@ function stanza_handler(event)
                        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