aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2009-03-30 03:23:23 +0500
committerWaqas Hussain <waqas20@gmail.com>2009-03-30 03:23:23 +0500
commite8ddd3e1823ace40dc96e73212904c3329b10092 (patch)
tree2dea4d421154e069c2982835abf177fa3a49f4ad
parent703044ae390898c17ed8268750b7e966dd789b38 (diff)
downloadprosody-e8ddd3e1823ace40dc96e73212904c3329b10092.tar.gz
prosody-e8ddd3e1823ace40dc96e73212904c3329b10092.zip
Added: Prevent disk writes for anonmous hosts (option: core/anonymous_login = true)
-rwxr-xr-xprosody3
1 files changed, 3 insertions, 0 deletions
diff --git a/prosody b/prosody
index 06ea5837..f411651f 100755
--- a/prosody
+++ b/prosody
@@ -104,6 +104,9 @@ require "util.jid"
local data_path = config.get("*", "core", "data_path") or CFG_DATADIR or "data";
require "util.datamanager".set_data_path(data_path);
+require "util.datamanager".set_callback(function(username, host, datastore)
+ return config.get(host, "core", "anonymous_login");
+end);
----------- End of out-of-place code --------------