Software /
code /
prosody
Diff
core/s2smanager.lua @ 3650:2b80450bd7ae
s2smanager: Compatibility hack for when not using dialback
author | Paul Aurich <paul@darkrain42.org> |
---|---|
date | Sun, 21 Nov 2010 21:02:31 -0800 (2010-11-22) |
parent | 3540:bc139431830b |
child | 3651:337391d34b70 |
child | 4016:0e927d4644c3 |
line wrap: on
line diff
--- a/core/s2smanager.lua Sun Nov 21 21:02:31 2010 -0800 +++ b/core/s2smanager.lua Sun Nov 21 21:02:31 2010 -0800 @@ -490,9 +490,11 @@ elseif session.type == "s2sin_unauthed" then session.type = "s2sin"; if host then + if not session.hosts[host] then session.hosts[host] = {}; end session.hosts[host].authed = true; end elseif session.type == "s2sin" and host then + if not session.hosts[host] then session.hosts[host] = {}; end session.hosts[host].authed = true; else return false;