fix for new player id field in plext

Signed-off-by: Carsten <strobel.carsten@gmail.com>
This commit is contained in:
Carsten 2013-12-01 02:38:49 +01:00
parent efd447b227
commit 4a3f667223

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]
}; };