my $msg = "Status has changed" if $bbstatus ne $last_bbstatus; $msg = "Last send too old" if ! length $msg and ($now - $last_send_time) > $min_frequency; $msg = "Forced send requested" if ! length $msg and defined($OPTS::opts{f}); $send_flag = length $msg; $msg ||= "No changes";