prosody

changeset 1382
d900e0d8b475
parent 1365
864a99eff6d7
child 1455
81e01809de54
equal deleted inserted replaced
1381:46a58df8557d 1382:d900e0d8b475
133 133
134 ------------- Begin code without a home --------------------- 134 ------------- Begin code without a home ---------------------
135 135
136 local data_path = config.get("*", "core", "data_path") or CFG_DATADIR or "data"; 136 local data_path = config.get("*", "core", "data_path") or CFG_DATADIR or "data";
137 require "util.datamanager".set_data_path(data_path); 137 require "util.datamanager".set_data_path(data_path);
138 require "util.datamanager".set_callback(function(username, host, datastore) 138 require "util.datamanager".add_callback(function(username, host, datastore, data)
139 return config.get(host, "core", "anonymous_login"); 139 if config.get(host, "core", "anonymous_login") then
140 return false;
141 end
142 return username, host, datastore, data;
140 end); 143 end);
141 144
142 ----------- End of out-of-place code -------------- 145 ----------- End of out-of-place code --------------
143 146
144 -- Function to reload the config file 147 -- Function to reload the config file

mercurial