1
0
Fork 0

No link to qrz.com for callsigns in qrz_blacklist (config.js)

main
Kim Huebel 4 years ago
parent 3cc05b268a
commit 071f8a3c83

@ -25,3 +25,8 @@ var useClientTimezone = 1;
// Show link to BrandMeister-LastHeard on TG if 1, else no link
var showBMTGLink = 1;
// Array of callsigns that should not be linked to qrz.com
var qrz_blacklist = [
"N0CALL",
]

@ -92,7 +92,7 @@ function getCallsign(logline) {
name = callsign.substring(callsign.indexOf("$") + 1, callsign.lastIndexOf("$"));
callsign = callsign.substring(0, callsign.indexOf("$"));
}
if (qrz == 1 && isNaN(callsign)) {
if (qrz == 1 && isNaN(callsign) && !qrz_blacklist.includes(callsign)) {
if (name != "") {
return '<div class=\"tooltip2\"><a target="_new" href="https://qrz.com/db/' + callsign + '">' + callsign + '</a><span class=\"tooltip2text\">Name:<br>' + name + '</span></div>';
} else {
@ -285,7 +285,7 @@ function getCallsign(logline) {
name = callsign.substring(callsign.indexOf("$") + 1, callsign.lastIndexOf("$"));
callsign = callsign.substring(0, callsign.indexOf("$"));
}
if (qrz == 1 && isNaN(callsign)) {
if (qrz == 1 && isNaN(callsign) && !qrz_blacklist.includes(callsign)) {
if (name != "") {
return '<div class=\"tooltip2\"><a target="_new" href="https://qrz.com/db/' + callsign + '">' + callsign + '</a><span class=\"tooltip2text\">Name:<br>' + name + '</span></div>';
} else {
@ -331,7 +331,7 @@ function getCurrentTXing() {
name = callsign.substring(callsign.indexOf("$") + 1, callsign.lastIndexOf("$"));
callsign = callsign.substring(0, callsign.indexOf("$"));
}
if (qrz == 1 && isNaN(callsign)) {
if (qrz == 1 && isNaN(callsign) && !qrz_blacklist.includes(callsign)) {
if (name != "") {
ts1[1] = '<div class=\"tooltip2\"><a target="_new" href="https://qrz.com/db/' + callsign + '">' + callsign + '</a><span class=\"tooltip2text\">Name:<br>' + name + '</span></div>';
} else {
@ -359,7 +359,7 @@ function getCurrentTXing() {
name = callsign.substring(callsign.indexOf("$") + 1, callsign.lastIndexOf("$"));
callsign = callsign.substring(0, callsign.indexOf("$"));
}
if (qrz == 1 && isNaN(callsign)) {
if (qrz == 1 && isNaN(callsign) && !qrz_blacklist.includes(callsign)) {
if (name != "") {
ts2[1] = '<div class=\"tooltip2\"><a target="_new" href="https://qrz.com/db/' + callsign + '">' + callsign + '</a><span class=\"tooltip2text\">Name:<br>' + name + '</span></div>';
} else {

@ -1 +1 @@
var dashboard_version = "2021-02-04 11:59:55";
var dashboard_version = "2021-02-04 12:07:19";

Loading…
Cancel
Save