mirror of
https://github.com/BubbaGumpShrump/AutoTrackR2.git
synced 2025-05-04 09:45:29 +00:00
Fix Spectrum Ban crash
This commit is contained in:
parent
c2f67940b2
commit
c17821c8f4
1 changed files with 9 additions and 2 deletions
|
@ -58,6 +58,9 @@ If (Test-Path $logFilePath) {
|
|||
Write-Output "Logfile not found."
|
||||
}
|
||||
If ($null -ne $apiUrl){
|
||||
if ($apiUrl -notlike "*/register-kill") {
|
||||
$apiUrl = $apiUrl + "/register-kill"
|
||||
}
|
||||
Write-output "PlayerName=$apiURL"
|
||||
}
|
||||
|
||||
|
@ -250,7 +253,11 @@ function Read-LogEntry {
|
|||
}
|
||||
|
||||
# Check if there are any matches
|
||||
$enemyOrgs = $page1.links[3].innerHTML
|
||||
If ($null -eq $page1.links[0].innerHTML) {
|
||||
$enemyOrgs = $page1.links[4].innerHTML
|
||||
} Else {
|
||||
$enemyOrgs = $page1.links[3].innerHTML
|
||||
}
|
||||
|
||||
if ($null -eq $enemyOrgs) {
|
||||
$enemyOrgs = "-"
|
||||
|
@ -261,7 +268,7 @@ function Read-LogEntry {
|
|||
# The matched UEE Citizen Record number is in $matches[1]
|
||||
$citizenRecord = $matches[1]
|
||||
} else {
|
||||
$citizenRecord = "-"
|
||||
$citizenRecord = "n/a"
|
||||
}
|
||||
If ($citizenRecord -eq "n/a") {
|
||||
$citizenRecordAPI = "-1"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue