Comparison

core/s2smanager.lua @ 4493:cad62a675b60

s2smanager: Log the host when marking it authenticated
author Paul Aurich <paul@darkrain42.org>
date Tue, 24 Jan 2012 14:58:54 -0800
parent 4329:d8b2c97ae6ed
child 4494:694491140a67
child 4511:92597f6223de
comparison
equal deleted inserted replaced
4492:0a4781f165e3 4493:cad62a675b60
555 if not session.hosts[host] then session.hosts[host] = {}; end 555 if not session.hosts[host] then session.hosts[host] = {}; end
556 session.hosts[host].authed = true; 556 session.hosts[host].authed = true;
557 else 557 else
558 return false; 558 return false;
559 end 559 end
560 session.log("debug", "connection %s->%s is now authenticated", session.from_host or "(unknown)", session.to_host or "(unknown)"); 560 session.log("debug", "connection %s->%s is now authenticated for %s", session.from_host or "(unknown)", session.to_host or "(unknown)", host);
561 561
562 mark_connected(session); 562 mark_connected(session);
563 563
564 return true; 564 return true;
565 end 565 end