fix #255 (by tpenner)
This commit is contained in:
parent
df708d0b33
commit
71d769c3ec
@ -81,6 +81,7 @@ Please do!
|
||||
[saithis](https://github.com/saithis),
|
||||
[Scrool](https://github.com/Scrool),
|
||||
[sorgo](https://github.com/sorgo),
|
||||
[tpenner](https://github.com/tpenner),
|
||||
[vita10gy](https://github.com/vita10gy),
|
||||
[Xelio](https://github.com/Xelio),
|
||||
[ZauberNerd](https://github.com/ZauberNerd)
|
||||
|
@ -1,7 +1,7 @@
|
||||
// ==UserScript==
|
||||
// @id iitc-plugin-player-tracker@breunigs
|
||||
// @name iitc: player tracker
|
||||
// @version 0.4
|
||||
// @version 0.5
|
||||
// @namespace https://github.com/breunigs/ingress-intel-total-conversion
|
||||
// @updateURL https://raw.github.com/breunigs/ingress-intel-total-conversion/gh-pages/plugins/player-tracker.user.js
|
||||
// @downloadURL https://raw.github.com/breunigs/ingress-intel-total-conversion/gh-pages/plugins/player-tracker.user.js
|
||||
@ -76,10 +76,11 @@ window.plugin.playerTracker.processNewData = function(data) {
|
||||
$.each(json[2].plext.markup, function(ind, markup) {
|
||||
switch(markup[0]) {
|
||||
case 'TEXT':
|
||||
// Destroy link messages depend on how the link was originally
|
||||
// created. Therefore it’s not clear which portal the player is
|
||||
// at, so ignore it.
|
||||
if(markup[1].plain.indexOf('destroyed the Link') !== -1) {
|
||||
// Destroy link and field messages depend on where the link or
|
||||
// field was originally created. Therefore it’s not clear which
|
||||
// portal the player is at, so ignore it.
|
||||
if(markup[1].plain.indexOf('destroyed the Link') !== -1
|
||||
|| markup[1].plain.indexOf('destroyed a Control Field') !== -1) {
|
||||
skipThisMessage = true;
|
||||
return false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user