projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
reset the F*****g obscount on C and K records!
[spider.git]
/
cmd
/
talk.pl
diff --git
a/cmd/talk.pl
b/cmd/talk.pl
index 1f7baa30c2fd744c75a1e41db5eb55268593b568..acd2eba54f84e6a70a73a826a18924b78532c70e 100644
(file)
--- a/
cmd/talk.pl
+++ b/
cmd/talk.pl
@@
-1,5
+1,5
@@
#
#
-# The talk command
+# The talk command
(improved)
#
# Copyright (c) 1998 Dirk Koopman G1TLH
#
#
# Copyright (c) 1998 Dirk Koopman G1TLH
#
@@
-28,13
+28,18
@@
if ($via) {
($to, $line) = split /\s+/, $inline, 2;
}
($to, $line) = split /\s+/, $inline, 2;
}
-$to = uc $to if $to;
+return (1, $self->msg('e8')) unless $to;
+
+$to = uc $to;
+
+return (1, $self->msg('e22', $to)) unless is_callsign($to);
+return (1, $self->msg('e28')) unless $self->registered || $to eq $main::myalias;
+
$via = uc $via if $via;
my $call = $via || $to;
my $clref = Route::get($call); # try an exact call
my $dxchan = $clref->dxchan if $clref;
$via = uc $via if $via;
my $call = $via || $to;
my $clref = Route::get($call); # try an exact call
my $dxchan = $clref->dxchan if $clref;
-#return (1, $self->msg('e7', $call)) unless $dxchan;
-return (1, $self->msg('e28')) unless $self->registered || $to eq $main::myalias;
+push @out, $self->msg('e7', $call) unless $dxchan;
#$DB::single = 1;
#$DB::single = 1;