Merge pull request #664 from strobel1x/master

fix for new player id field in plext
This commit is contained in:
Jon Atkins 2013-11-30 19:12:33 -08:00
commit f8c0517490

View File

@ -165,7 +165,7 @@ window.plugin.playerTracker.processNewData = function(data) {
} }
break; break;
case 'PLAYER': case 'PLAYER':
pguid = markup[1].guid; pguid = markup[1].plain;
break; break;
case 'PORTAL': case 'PORTAL':
// link messages are “player linked X to Y” and the player is at // link messages are “player linked X to Y” and the player is at
@ -196,7 +196,7 @@ window.plugin.playerTracker.processNewData = function(data) {
if(!playerData || playerData.events.length === 0) { if(!playerData || playerData.events.length === 0) {
plugin.playerTracker.stored[pguid] = { plugin.playerTracker.stored[pguid] = {
// this always resolves, as the chat delivers this data // this always resolves, as the chat delivers this data
nick: window.getPlayerName(pguid), nick: pguid,
team: json[2].plext.team, team: json[2].plext.team,
events: [newEvent] events: [newEvent]
}; };