s2smanager: Compatibility hack for when not using dialback

Sun, 21 Nov 2010 21:02:31 -0800

author
Paul Aurich <paul@darkrain42.org>
date
Sun, 21 Nov 2010 21:02:31 -0800
changeset 3648
2b80450bd7ae
parent 3647
ae99396ee261
child 3649
337391d34b70
child 3781
3ce3b494e84c

s2smanager: Compatibility hack for when not using dialback

core/s2smanager.lua file | annotate | diff | comparison | revisions
--- 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