2 # print out the general log file for chat only
4 # Copyright (c) 1998-2003 - 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?
31 ($who) = $f =~ /^(\w+)/o;
35 $from = 0 unless $from;
37 if ($self->{_nospawn}) {
38 @out = DXLog::print($from, $to, $main::systime, 'chat', $who);
40 @out = $self->spawn_cmd("show/chat $cmdline", \&DXLog::print, args => [$from, $to, $main::systime, 'chat', $who]);