More complete rework of packet parsing and packet generation with 29710c
This commit is contained in:
@@ -92,7 +92,6 @@ final class Netmail extends Model implements Packet
|
||||
$nodes = collect();
|
||||
|
||||
// Parse PATH
|
||||
// @todo dont save us in the path, we'll add it dynamically when we send out.
|
||||
// <FTN Address> @YYYYMMDD.HHMMSS[.Precise][.Time Zone] <Program Name> <Version> [Serial Number]
|
||||
if ($model->set->has('set_path')) {
|
||||
foreach ($model->set->get('set_path') as $line) {
|
||||
@@ -123,8 +122,8 @@ final class Netmail extends Model implements Packet
|
||||
}
|
||||
|
||||
// If there are no details (Mystic), we'll create a blank
|
||||
} else {
|
||||
$nodes->push(['node'=>$model->set->get('set_sender'),'datetime'=>Carbon::now(),'program'=>sprintf('%s (%04X)',Setup::PRODUCT_NAME,Setup::PRODUCT_ID)]);
|
||||
} elseif ($model->set->has('set_sender')) {
|
||||
$nodes->push(['node'=>$model->set->get('set_sender'),'datetime'=>Carbon::now(),'program'=>'Unknown']);
|
||||
}
|
||||
|
||||
// Save the Path
|
||||
|
Reference in New Issue
Block a user