From 5660552e36f34665610dd16d1edc86062f399b1a Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Mon, 22 Jun 2009 14:16:06 +0100 Subject: prosody: Switch anonymous_login check to use the new datamanager callback syntax --- prosody | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'prosody') diff --git a/prosody b/prosody index 0fd0b735..290aa874 100755 --- a/prosody +++ b/prosody @@ -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 -------------- -- cgit v1.2.3