Comparison

prosodyctl @ 3161:73e93a48c0c1

Update usermanager to not crash, etc.
author Jeff Mitchell <jeff@jefferai.org>
date Thu, 20 May 2010 14:18:12 -0400
parent 3038:6b68355d615a
child 3234:2d61773d7ab4
comparison
equal deleted inserted replaced
3160:9064dd006b21 3161:73e93a48c0c1
121 }, { __index = function (t,k) return "Error: "..(tostring(k):gsub("%-", " "):gsub("^.", string.upper)); end }); 121 }, { __index = function (t,k) return "Error: "..(tostring(k):gsub("%-", " "):gsub("^.", string.upper)); end });
122 122
123 hosts = prosody.hosts; 123 hosts = prosody.hosts;
124 124
125 local function make_host(hostname) 125 local function make_host(hostname)
126 return { events = prosody.events, users = require "core.usermanager".new_default_provider(hostname) }; 126 return { events = prosody.events, users = require "core.usermanager".new_null_provider(hostname) };
127 end 127 end
128 128
129 for hostname, config in pairs(config.getconfig()) do 129 for hostname, config in pairs(config.getconfig()) do
130 hosts[hostname] = make_host(hostname); 130 hosts[hostname] = make_host(hostname);
131 end 131 end