From bb78d91827c41f01a900b20c6c30531842f5ba08 Mon Sep 17 00:00:00 2001 From: Paul Aurich Date: Sun, 21 Nov 2010 21:02:31 -0800 Subject: s2smanager: Compatibility hack for when not using dialback --- core/s2smanager.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'core') 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; -- cgit v1.2.3