diff --git a/app/Classes/FTN/Message.php b/app/Classes/FTN/Message.php index 4886307..8854464 100644 --- a/app/Classes/FTN/Message.php +++ b/app/Classes/FTN/Message.php @@ -240,8 +240,6 @@ class Message extends FTNBase $o->mo->flags = $o->header['flags']; $o->mo->cost = $o->header['cost']; - $o->mo->msg_crc = md5($o->mo->msg_src); - if ($o->fftn) $o->mo->fftn_id = $o->fftn->id; else @@ -699,6 +697,7 @@ class Message extends FTNBase // Process the message content if ($content=substr($message,$ptr_start,$ptr_end-$ptr_start)) { $o->msg_src = $content; + $o->msg_crc = md5($content); $ptr_content_start = 0; // See if we have a tagline diff --git a/app/Classes/FTN/Process.php b/app/Classes/FTN/Process.php index 5fc1669..a13e5c4 100644 --- a/app/Classes/FTN/Process.php +++ b/app/Classes/FTN/Process.php @@ -11,7 +11,7 @@ abstract class Process { public static function canProcess(Echoarea $eao): bool { - return $eao->automsgs; + return $eao->automsgs ? TRUE : FALSE; } /**