2 # print out the general log file for announces only
4 # Copyright (c) 1998 - Dirk Koopman G1TLH
10 # this appears to be a reasonable thing for users to do (thank you JE1SGH)
11 # return (1, $self->msg('e5')) if $self->priv < 9;
14 my @f = split /\s+/, $cmdline;
17 my ($from, $to, $who);
20 while ($f = shift @f) { # next field
21 # print "f: $f list: ", join(',', @list), "\n";
23 ($from, $to) = $f =~ /^(\d+)-(\d+)$/o; # is it a from -> to count?
24 next if $from && $to > $from;
27 ($to) = $f =~ /^(\d+)$/o if !$to; # is it a to count?
37 #($who) = $f =~ /^(\w+)/o;
41 $from = 0 unless $from;
43 return (1, DXLog::print($from, $to, $main::systime, 'ann', $who)) if $self->{_nospawn};;
44 return (1, $self->spawn_cmd("show/announce $cmdline", \&DXLog::print, args => [$from, $to, $main::systime, 'ann', $who]));