projects
/
prosody.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
49e3bc6
)
mod_muc: Allow admins to always bypass restrict_room_creation (thanks Chris B)
author
Matthew Wild
<mwild1@gmail.com>
Fri, 13 Dec 2013 12:52:03 +0000
(12:52 +0000)
committer
Matthew Wild
<mwild1@gmail.com>
Fri, 13 Dec 2013 12:52:03 +0000
(12:52 +0000)
plugins/muc/mod_muc.lua
patch
|
blob
|
history
diff --git
a/plugins/muc/mod_muc.lua
b/plugins/muc/mod_muc.lua
index 0f1beb0e5f1f6801ce8de79299c2903764ac4009..c8488a85735246657b0a8d61b923be825cb636dc 100644
(file)
--- 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