Software /
code /
prosody
Comparison
core/hostmanager.lua @ 3587:d94aacb2771a
componentmanager, hostmanager, modulemanager, mod_component: Got rid of the useless hosts[*].connected property.
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Wed, 10 Nov 2010 03:39:38 +0500 |
parent | 3571:675d65036f31 |
child | 3594:d3b57562cd87 |
comparison
equal
deleted
inserted
replaced
3586:78ed7ad330ab | 3587:d94aacb2771a |
---|---|
47 end | 47 end |
48 | 48 |
49 prosody_events.add_handler("server-starting", load_enabled_hosts); | 49 prosody_events.add_handler("server-starting", load_enabled_hosts); |
50 | 50 |
51 function activate(host, host_config) | 51 function activate(host, host_config) |
52 hosts[host] = {type = "local", connected = true, sessions = {}, | 52 hosts[host] = {type = "local", sessions = {}, |
53 host = host, s2sout = {}, events = events_new(), | 53 host = host, s2sout = {}, events = events_new(), |
54 disallow_s2s = configmanager.get(host, "core", "disallow_s2s") | 54 disallow_s2s = configmanager.get(host, "core", "disallow_s2s") |
55 or (configmanager.get(host, "core", "anonymous_login") | 55 or (configmanager.get(host, "core", "anonymous_login") |
56 and (configmanager.get(host, "core", "disallow_s2s") ~= false)); | 56 and (configmanager.get(host, "core", "disallow_s2s") ~= false)); |
57 dialback_secret = configmanager.get(host, "core", "dialback_secret") or uuid_gen(); | 57 dialback_secret = configmanager.get(host, "core", "dialback_secret") or uuid_gen(); |