Enable duplicates to update seen-by's before being discarded
This commit is contained in:
@@ -19,7 +19,7 @@ class PacketProcess extends Command
|
||||
protected $signature = 'packet:process'
|
||||
.' {pkt : Packet to process}'
|
||||
.' {--N|nobot : Dont process bots}'
|
||||
.' {zone? : Zone the packet is from}';
|
||||
.' {system? : Zone the packet is from}';
|
||||
|
||||
/**
|
||||
* The console command description.
|
||||
@@ -37,9 +37,9 @@ class PacketProcess extends Command
|
||||
public function handle()
|
||||
{
|
||||
$f = new File($this->argument('pkt'));
|
||||
$z = $this->argument('zone') ? Zone::where('zone_id',$this->argument('zone'))->singleOrFail() : NULL;
|
||||
$s = $this->argument('system') ? Zone::where('name',$this->argument('system'))->singleOrFail() : NULL;
|
||||
|
||||
foreach (Packet::open($f,$z) as $msg) {
|
||||
foreach (Packet::open($f,$s) as $msg) {
|
||||
// @todo Quick check that the packet should be processed by us.
|
||||
// @todo validate that the packet's zone is in the domain.
|
||||
|
||||
|
Reference in New Issue
Block a user