aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/muc
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2013-12-13 12:52:03 +0000
committerMatthew Wild <mwild1@gmail.com>2013-12-13 12:52:03 +0000
commit3c2e8f23781fc356c40ca4c2a1eb0ef5543e93ab (patch)
tree28bb7e809eaf21d78e471e927eba5bf418b3902f /plugins/muc
parent5d980f3e9d99fae86ee0ce4d2a70672237a98356 (diff)
downloadprosody-3c2e8f23781fc356c40ca4c2a1eb0ef5543e93ab.tar.gz
prosody-3c2e8f23781fc356c40ca4c2a1eb0ef5543e93ab.zip
mod_muc: Allow admins to always bypass restrict_room_creation (thanks Chris B)
Diffstat (limited to 'plugins/muc')
-rw-r--r--plugins/muc/mod_muc.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/muc/mod_muc.lua b/plugins/muc/mod_muc.lua
index 0f1beb0e..c8488a85 100644
--- a/plugins/muc/mod_muc.lua
+++ b/plugins/muc/mod_muc.lua
@@ -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