projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added callsign to logging
[spider.git]
/
cmd
/
show
/
call.pl
diff --git
a/cmd/show/call.pl
b/cmd/show/call.pl
index 4674b9180477c7c846d3be2e7405b6136ab8482c..d45f756c597eaa74f61054a9e8cac5cd1423eea5 100644
(file)
--- a/
cmd/show/call.pl
+++ b/
cmd/show/call.pl
@@
-8,6
+8,7
@@
my ($self, $line) = @_;
my @list = split /\s+/, $line; # generate a list of callsigns
my $l;
my ($self, $line) = @_;
my @list = split /\s+/, $line; # generate a list of callsigns
my $l;
+my $call = $self->call;
my @out;
return (1, "SHOW/CALL <callsign>, e.g. SH/CALL g1tlh") unless @list;
my @out;
return (1, "SHOW/CALL <callsign>, e.g. SH/CALL g1tlh") unless @list;
@@
-16,20
+17,20
@@
use Net::Telnet;
my $t = new Net::Telnet;
my $t = new Net::Telnet;
-push @out, $self->msg('call1');
+push @out, $self->msg('call1'
, 'AA6HF'
);
foreach $l (@list) {
$t->open(Host => "jeifer.pineknot.com",
Port => 1235,
Timeout => 5);
if ($t) {
$t->print(uc $l);
foreach $l (@list) {
$t->open(Host => "jeifer.pineknot.com",
Port => 1235,
Timeout => 5);
if ($t) {
$t->print(uc $l);
- Log('call', "show/call $l");
+ Log('call', "
$call:
show/call $l");
while (my $result = $t->getline) {
push @out,$result;
}
$t->close;
} else {
while (my $result = $t->getline) {
push @out,$result;
}
$t->close;
} else {
- push @out, $self->msg('e18', '
PineKnot
');
+ push @out, $self->msg('e18', '
AA6HF
');
}
}
}
}