Release candidtate 331

pull/14/head
Tom Early 6 years ago
parent 1900f20560
commit 7309509175

@ -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("','");

@ -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());

Loading…
Cancel
Save

Powered by TurnKey Linux.