Software /
code /
prosody
Comparison
prosodyctl @ 3630:e0c67b14d25f
prosodyctl: Give hosts type = 'local'
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Thu, 18 Nov 2010 14:33:03 +0000 |
parent | 3627:9e62937c9757 |
child | 3724:c12ebbd4ab61 |
comparison
equal
deleted
inserted
replaced
3629:856e42b38bb0 | 3630:e0c67b14d25f |
---|---|
166 }, { __index = function (t,k) return "Error: "..(tostring(k):gsub("%-", " "):gsub("^.", string.upper)); end }); | 166 }, { __index = function (t,k) return "Error: "..(tostring(k):gsub("%-", " "):gsub("^.", string.upper)); end }); |
167 | 167 |
168 hosts = prosody.hosts; | 168 hosts = prosody.hosts; |
169 | 169 |
170 local function make_host(hostname) | 170 local function make_host(hostname) |
171 return { events = prosody.events, users = require "core.usermanager".new_null_provider(hostname) }; | 171 return { |
172 type = "local", | |
173 events = prosody.events, | |
174 users = require "core.usermanager".new_null_provider(hostname) | |
175 }; | |
172 end | 176 end |
173 | 177 |
174 for hostname, config in pairs(config.getconfig()) do | 178 for hostname, config in pairs(config.getconfig()) do |
175 hosts[hostname] = make_host(hostname); | 179 hosts[hostname] = make_host(hostname); |
176 end | 180 end |