aboutsummaryrefslogtreecommitdiffstats
path: root/core/s2smanager.lua
diff options
context:
space:
mode:
authorPaul Aurich <paul@darkrain42.org>2010-11-21 21:02:31 -0800
committerPaul Aurich <paul@darkrain42.org>2010-11-21 21:02:31 -0800
commitbb78d91827c41f01a900b20c6c30531842f5ba08 (patch)
tree73776520b4865f25123174901b52c42048d91b29 /core/s2smanager.lua
parent295773cfbcee3ac2c59d63061c2264f02a970936 (diff)
downloadprosody-bb78d91827c41f01a900b20c6c30531842f5ba08.tar.gz
prosody-bb78d91827c41f01a900b20c6c30531842f5ba08.zip
s2smanager: Compatibility hack for when not using dialback
Diffstat (limited to 'core/s2smanager.lua')
-rw-r--r--core/s2smanager.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/s2smanager.lua b/core/s2smanager.lua
index c4a94682..c6e6df8e 100644
--- a/core/s2smanager.lua
+++ b/core/s2smanager.lua
@@ -490,9 +490,11 @@ function make_authenticated(session, host)
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;