Allow for origin/tagline/tearline can have UTF8 chars, show # messages in packets

This commit is contained in:
Deon George
2021-09-12 23:06:17 +10:00
parent 5e8b590f17
commit 79e613a811
7 changed files with 19 additions and 5 deletions

View File

@@ -45,6 +45,7 @@ class PacketInfo extends Command
$this->info(sprintf('Tosser %d (%s) version %s',$pkt->software->code,$pkt->software->name,$pkt->software_ver));
$this->info(sprintf('Capabilities: %x',$pkt->capability));
$this->info(sprintf('Has Errors: %s',$pkt->errors->count() ? 'YES' : 'No'));
$this->info(sprintf('Messages: %d',$pkt->count()));
foreach ($pkt as $msg) {
$this->warn(sprintf('- Date: %s',$msg->date));

View File

@@ -43,8 +43,10 @@ class PacketProcess extends Command
// @todo Quick check that the packet should be processed by us.
// @todo validate that the packet's zone is in the domain.
$this->info(sprintf('Processing message from [%s] with msgid [%s]',$msg->fboss,$msg->msgid));
// Dispatch job.
Job::dispatchSync($msg,$this->option('nobot'));
Job::dispatch($msg,$this->option('nobot'));
}
}
}