Changeset

5939:56d81af64fc5

Merge 0.9->0.10
author Matthew Wild <mwild1@gmail.com>
date Fri, 13 Dec 2013 12:52:39 +0000
parents 5935:a367bae38385 (current diff) 5938:deb261fb5c04 (diff)
children 5940:783107f85ea0 5941:31f14991070b
files plugins/muc/mod_muc.lua prosody
diffstat 2 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/muc/mod_muc.lua	Wed Dec 11 22:31:48 2013 +0000
+++ b/plugins/muc/mod_muc.lua	Fri Dec 13 12:52:39 2013 +0000
@@ -164,7 +164,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
--- a/prosody	Wed Dec 11 22:31:48 2013 +0000
+++ b/prosody	Fri Dec 13 12:52:39 2013 +0000
@@ -86,6 +86,7 @@
 			break;
 		end
 	end
+	prosody.config_file = filename
 	local ok, level, err = config.load(filename);
 	if not ok then
 		print("\n");
@@ -240,7 +241,7 @@
 	function prosody.reload_config()
 		log("info", "Reloading configuration file");
 		prosody.events.fire_event("reloading-config");
-		local ok, level, err = config.load((rawget(_G, "CFG_CONFIGDIR") or ".").."/prosody.cfg.lua");
+		local ok, level, err = config.load(prosody.config_file);
 		if not ok then
 			if level == "parser" then
 				log("error", "There was an error parsing the configuration file: %s", tostring(err));