mod_muc: Allow admins to always bypass restrict_room_creation (thanks Chris B)
authorMatthew Wild <mwild1@gmail.com>
Fri, 13 Dec 2013 12:52:03 +0000 (12:52 +0000)
committerMatthew Wild <mwild1@gmail.com>
Fri, 13 Dec 2013 12:52:03 +0000 (12:52 +0000)
plugins/muc/mod_muc.lua

index 0f1beb0e5f1f6801ce8de79299c2903764ac4009..c8488a85735246657b0a8d61b923be825cb636dc 100644 (file)
@@ -155,7 +155,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