From 7309509175b8c4bd4c83bc0ce0c185c8df9a560e Mon Sep 17 00:00:00 2001 From: Tom Early Date: Tue, 31 Mar 2020 08:18:10 -0700 Subject: [PATCH] Release candidtate 331 --- QnetDB.cpp | 1 - QnetGateway.cpp | 2 +- index.php | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/QnetDB.cpp b/QnetDB.cpp index df36084..af7a72f 100644 --- a/QnetDB.cpp +++ b/QnetDB.cpp @@ -82,7 +82,6 @@ bool CQnetDB::UpdateLH(const char *callsign, const char *sfx, const char module, { if (NULL == db) return false; - printf("UpdateLH call=%s sfx=%s mod=%c ref='%s'\n", callsign, sfx, module, reflector); std::string sql("REPLACE INTO LHEARD (callsign,sfx,module,reflector,lasttime) VALUES ('"); sql.append(callsign); sql.append("','"); diff --git a/QnetGateway.cpp b/QnetGateway.cpp index 6a9e84c..2a3a38b 100644 --- a/QnetGateway.cpp +++ b/QnetGateway.cpp @@ -1089,7 +1089,7 @@ void CQnetGateway::ProcessG2(const ssize_t g2buflen, const SDSVT &g2buf, const i // no matter what, we will send this on if it is the closing frame lastctrl = (0x3FU & g2buf.ctrl); Gate2Modem[i].Write(g2buf.title, 27); - if (source_sock >= 0) { + if (source_sock >= 0 && showLastHeard) { std::string smartgroup; if(ProcessG2Msg(g2buf.vasd.text, i, smartgroup)) { qnDB.UpdateLH(lhcallsign.c_str(), lhsfx.c_str(), 'A'+i, smartgroup.c_str()); diff --git a/index.php b/index.php index 3803a1e..6e66466 100644 --- a/index.php +++ b/index.php @@ -149,7 +149,7 @@ foreach($showlist as $section) { break; case 'LH': echo 'Last Heard:
', "\n"; - $rstr = 'MyCall/Sfx Mod Via Time
'; + $rstr = 'MyCall/Sfx Mod Via Time
'; echo str_replace(' ', ' ', $rstr), "\n"; $dbname = $cfgdir.'/'.GetCFGValue('dash_sql_filename'); $db = new SQLite3($dbname, SQLITE3_OPEN_READONLY);