core/s2smanager.lua

changeset 3648
2b80450bd7ae
parent 3540
bc139431830b
child 3649
337391d34b70
--- 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;

mercurial