Changeset

933:2a5352e0e10e

Added: Prevent disk writes for anonmous hosts (option: core/anonymous_login = true)
author Waqas Hussain <waqas20@gmail.com>
date Mon, 30 Mar 2009 03:23:23 +0500
parents 932:1ed3e5fe165a
children 934:0bda9b5b6a06
files prosody
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/prosody	Mon Mar 30 03:22:34 2009 +0500
+++ b/prosody	Mon Mar 30 03:23:23 2009 +0500
@@ -104,6 +104,9 @@
 
 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 --------------