diff options
author | Waqas Hussain <waqas20@gmail.com> | 2009-03-30 03:23:23 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2009-03-30 03:23:23 +0500 |
commit | e8ddd3e1823ace40dc96e73212904c3329b10092 (patch) | |
tree | 2dea4d421154e069c2982835abf177fa3a49f4ad | |
parent | 703044ae390898c17ed8268750b7e966dd789b38 (diff) | |
download | prosody-e8ddd3e1823ace40dc96e73212904c3329b10092.tar.gz prosody-e8ddd3e1823ace40dc96e73212904c3329b10092.zip |
Added: Prevent disk writes for anonmous hosts (option: core/anonymous_login = true)
-rwxr-xr-x | prosody | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 -------------- |