Bugfix: chat bug.

If node A started up and connected to node B, which already had players logged on,
then nobody on A could send chat to anyone on B.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5695 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Ray Greenwell
2009-03-25 22:56:29 +00:00
parent 3c8e293071
commit 4a5136d3f0
@@ -184,6 +184,19 @@ public class CrowdPeerManager extends PeerManager
}
}
@Override // from PeerManager
protected void connectedToPeer (PeerNode peer)
{
super.connectedToPeer(peer);
for (ClientInfo clinfo : peer.nodeobj.clients) {
if (clinfo instanceof CrowdClientInfo) {
CrowdClientInfo ccinfo = (CrowdClientInfo)clinfo;
_viztoauth.put(ccinfo.visibleName, ccinfo.username);
}
}
}
/** A mapping of visible name to username for all clients on all *remote* nodes. */
protected Map<Name, Name> _viztoauth = Maps.newHashMap();