Changeset

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
parents 3649:ae99396ee261
children 3651:337391d34b70 3781:3ce3b494e84c
files core/s2smanager.lua
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
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;