Comparison

util/startup.lua @ 8715:25d8d6091ec3

util.startup: Access the hosts table via the prosody global for consistency
author Kim Alvefur <zash@zash.se>
date Thu, 29 Mar 2018 16:38:35 +0200
parent 8713:48bd442f6d4d
child 8719:0cb84aafeee6
comparison
equal deleted inserted replaced
8714:e1c4bdb2cd25 8715:25d8d6091ec3
486 -- with just enough things for most code to work correctly 486 -- with just enough things for most code to work correctly
487 -- luacheck: ignore 122/hosts 487 -- luacheck: ignore 122/hosts
488 prosody.core_post_stanza = function () end; -- TODO: mod_router! 488 prosody.core_post_stanza = function () end; -- TODO: mod_router!
489 489
490 for hostname in pairs(config.getconfig()) do 490 for hostname in pairs(config.getconfig()) do
491 hosts[hostname] = startup.make_host(hostname); 491 prosody.hosts[hostname] = startup.make_host(hostname);
492 end 492 end
493 end 493 end
494 494
495 -- prosodyctl only 495 -- prosodyctl only
496 function startup.prosodyctl() 496 function startup.prosodyctl()