projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added some more pc16/17 routing code
[spider.git]
/
perl
/
AMsg.pm
diff --git
a/perl/AMsg.pm
b/perl/AMsg.pm
index f1a7112f5c2159e735d91525358d256ee7f7a0f0..0b94c15d4bfc48a2d810b030919255dc6b208b56 100644
(file)
--- a/
perl/AMsg.pm
+++ b/
perl/AMsg.pm
@@
-23,7
+23,7
@@
use Thingy::Hello;
use vars qw($VERSION $BRANCH);
$VERSION = sprintf( "%d.%03d", q$Revision$ =~ /(\d+)\.(\d+)/ );
use vars qw($VERSION $BRANCH);
$VERSION = sprintf( "%d.%03d", q$Revision$ =~ /(\d+)\.(\d+)/ );
-$BRANCH = sprintf( "%d.%03d", q$Revision$ =~ /
\d+\.\d+\.(\d+)\.(\d+)
/ || (0,0));
+$BRANCH = sprintf( "%d.%03d", q$Revision$ =~ /
^\d+\.\d+(?:\.(\d+)\.(\d+))?$
/ || (0,0));
$main::build += $VERSION;
$main::branch += $BRANCH;
$main::build += $VERSION;
$main::branch += $BRANCH;
@@
-71,7
+71,7
@@
sub dequeue
# this is the first stage that we have a callsign
# do we have a hello?
$msg =~ s/[\r\n]+$//;
# this is the first stage that we have a callsign
# do we have a hello?
$msg =~ s/[\r\n]+$//;
- if ($msg =~ m{
RT,[0-9A-F,]+|HELLO
}) {
+ if ($msg =~ m{
|HELLO,
}) {
# a possibly valid HELLO line, process it
$conn->new_channel($msg);
}
# a possibly valid HELLO line, process it
$conn->new_channel($msg);
}