X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fshow%2Ftalk.pl;h=3dafbc0b2bfd67201ac5d1cde4903f7b5d04b6bd;hb=a76624e4742348ed0f39c7c3f732cdec8462da9e;hp=f30d95ec57e9676e29f87cfdb772d242b70fe82e;hpb=69c8aeb338cc485103e289fbab7ec4e7e056ed20;p=spider.git diff --git a/cmd/show/talk.pl b/cmd/show/talk.pl index f30d95ec..3dafbc0b 100644 --- a/cmd/show/talk.pl +++ b/cmd/show/talk.pl @@ -3,12 +3,10 @@ # # Copyright (c) 1998 - Dirk Koopman G1TLH # -# $Id$ +# # my $self = shift; -return (1, $self->msg('e5')) if $self->priv < 9; - my $cmdline = shift; my @f = split /\s+/, $cmdline; my $f; @@ -32,6 +30,12 @@ while ($f = shift @f) { # next field $to = 20 unless $to; $from = 0 unless $from; +if ($self->priv < 6) { + $who = $self->call unless $who; + return (1, $self->msg('e5')) if $who ne $self->call; +} -@out = DXLog::print($from, $to, $main::systime, '^talk', $who); +@out = $self->spawn_cmd(\&DXLog::print, args => [$from, $to, $main::systime, 'talk', $who]); + +#@out = DXLog::print($from, $to, $main::systime, 'talk', $who); return (1, @out);