Fixed #126: hearing should be parsed for every frame received not just dircted to me

This commit is contained in:
Jordan Sherer 2019-02-18 14:20:25 -05:00
parent 7101aec331
commit fddb618fa2

View File

@ -9846,6 +9846,19 @@ void MainWindow::processCommandActivity() {
continue;
}
// PROCESS BUFFERED HEARING FOR EVERYONE
if (d.cmd == " HEARING"){
// 1. parse callsigns
// 2. log it to the heard graph
auto calls = Varicode::parseCallsigns(d.text);
foreach(auto call, calls){
logHeardGraph(d.from, call);
}
// make sure this is explicit
continue;
}
// we're only responding to allcall, groupcalls, and our callsign at this point, so we'll end after logging the callsigns we've heard
if (!isAllCall && !toMe && !isGroupCall) {
continue;
@ -10373,15 +10386,6 @@ void MainWindow::processCommandActivity() {
continue;
}
// PROCESS BUFFERED HEARING
else if (d.cmd == " HEARING" && !isAllCall){
auto calls = Varicode::parseCallsigns(d.text);
foreach(auto call, calls){
logHeardGraph(d.from, call);
}
continue;
}
#if 0
// PROCESS ALERT
else if (d.cmd == "!" && !isAllCall) {