Software /
code /
prosody
Comparison
core/s2smanager.lua @ 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 |
parent | 3540:bc139431830b |
child | 3651:337391d34b70 |
child | 4016:0e927d4644c3 |
comparison
equal
deleted
inserted
replaced
3649:ae99396ee261 | 3650:2b80450bd7ae |
---|---|
488 if session.type == "s2sout_unauthed" then | 488 if session.type == "s2sout_unauthed" then |
489 session.type = "s2sout"; | 489 session.type = "s2sout"; |
490 elseif session.type == "s2sin_unauthed" then | 490 elseif session.type == "s2sin_unauthed" then |
491 session.type = "s2sin"; | 491 session.type = "s2sin"; |
492 if host then | 492 if host then |
493 if not session.hosts[host] then session.hosts[host] = {}; end | |
493 session.hosts[host].authed = true; | 494 session.hosts[host].authed = true; |
494 end | 495 end |
495 elseif session.type == "s2sin" and host then | 496 elseif session.type == "s2sin" and host then |
497 if not session.hosts[host] then session.hosts[host] = {}; end | |
496 session.hosts[host].authed = true; | 498 session.hosts[host].authed = true; |
497 else | 499 else |
498 return false; | 500 return false; |
499 end | 501 end |
500 session.log("debug", "connection %s->%s is now authenticated", session.from_host or "(unknown)", session.to_host or "(unknown)"); | 502 session.log("debug", "connection %s->%s is now authenticated", session.from_host or "(unknown)", session.to_host or "(unknown)"); |