prosody
changeset 1314 c18cf7ccc2de
parent 1313 6c7347696caa
child 1363 daa51f48736d
equal deleted inserted replaced
1313:6c7347696caa 1314:c18cf7ccc2de
   140 end);
   140 end);
   141 
   141 
   142 ----------- End of out-of-place code --------------
   142 ----------- End of out-of-place code --------------
   143 
   143 
   144 -- Function to reload the config file
   144 -- Function to reload the config file
   145 function prosody_reload_config()
   145 function prosody.reload_config()
   146 	log("info", "Reloading configuration file");
   146 	log("info", "Reloading configuration file");
   147 	eventmanager.fire_event("reloading-config");
   147 	eventmanager.fire_event("reloading-config");
   148 	local ok, level, err = config.load((rawget(_G, "CFG_CONFIGDIR") or ".").."/prosody.cfg.lua");
   148 	local ok, level, err = config.load((rawget(_G, "CFG_CONFIGDIR") or ".").."/prosody.cfg.lua");
   149 	if not ok then
   149 	if not ok then
   150 		if level == "parser" then
   150 		if level == "parser" then