Diff

plugins/muc/mod_muc.lua @ 5938:deb261fb5c04

mod_muc: Allow admins to always bypass restrict_room_creation (thanks Chris B)
author Matthew Wild <mwild1@gmail.com>
date Fri, 13 Dec 2013 12:52:03 +0000
parent 5577:8b09b0d068d4
child 5939:56d81af64fc5
child 5943:355f8b59bf1b
line wrap: on
line diff
--- a/plugins/muc/mod_muc.lua	Fri Dec 13 10:25:40 2013 +0100
+++ b/plugins/muc/mod_muc.lua	Fri Dec 13 12:52:03 2013 +0000
@@ -155,7 +155,7 @@
 			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