projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add in last config time
[spider.git]
/
perl
/
AGWMsg.pm
diff --git
a/perl/AGWMsg.pm
b/perl/AGWMsg.pm
index d6828812f2f31dbd2684b3143db3575bbae39647..cb64177e20931cf5bb5c067bc36a26f13c4e235c 100644
(file)
--- a/
perl/AGWMsg.pm
+++ b/
perl/AGWMsg.pm
@@
-104,6
+104,11
@@
sub finish
}
}
}
}
+sub login
+{
+ goto &main::login; # save some writing, this was the default
+}
+
sub active
{
return $sock;
sub active
{
return $sock;
@@
-327,15
+332,9
@@
sub _decode
$conn->{incoming} = 1;
$conn->{agwcall} = $call;
$circuit{$call} = $conn;
$conn->{incoming} = 1;
$conn->{agwcall} = $call;
$circuit{$call} = $conn;
- if ($call =~ /^(\w+)-(\d\d?)$/) {
- my $c = $1;
- my $s = $2;
- $s = 15 - $s;
- if ($s <= 8 && $s > 0) {
- $call = "${c}-${s}";
- } else {
- $call = $c;
- }
+ if (my ($c, $s) = $call =~ /^(\w+)-(\d\d?)$/) {
+ $s = 15 - $s if $s > 8;
+ $call = $s > 0 ? "${c}-${s}" : $c;
}
$conn->to_connected($call, 'A', $conn->{csort} = 'ax25');
}
}
$conn->to_connected($call, 'A', $conn->{csort} = 'ax25');
}