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:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user