diff options
author | Matthew Wild <mwild1@gmail.com> | 2009-06-22 14:16:06 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2009-06-22 14:16:06 +0100 |
commit | 5660552e36f34665610dd16d1edc86062f399b1a (patch) | |
tree | b51d7e76893b4ec02089e2d1577d900606d70911 | |
parent | 3e796503e146666c151da1b7d9352d96e5c57120 (diff) | |
download | prosody-5660552e36f34665610dd16d1edc86062f399b1a.tar.gz prosody-5660552e36f34665610dd16d1edc86062f399b1a.zip |
prosody: Switch anonymous_login check to use the new datamanager callback syntax
-rwxr-xr-x | prosody | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -135,8 +135,11 @@ 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"); +require "util.datamanager".add_callback(function(username, host, datastore, data) + if config.get(host, "core", "anonymous_login") then + return false; + end + return username, host, datastore, data; end); ----------- End of out-of-place code -------------- |