package IntMsg;
use strict;
+
+use vars qw($VERSION $BRANCH);
+$VERSION = sprintf( "%d.%03d", q$Revision$ =~ /(\d+)\.(\d+)/ );
+$BRANCH = sprintf( "%d.%03d", q$Revision$ =~ /\d+\.\d+\.(\d+)\.(\d+)/ ) || 0;
+$main::build += $VERSION;
+$main::branch += $BRANCH;
+
use Msg;
use vars qw(@ISA);
{
my $conn = shift;
- if ($conn->{msg} =~ /\n/) {
+ if ($conn && $conn->{msg} =~ /\n/) {
my @lines = split /\r?\n/, $conn->{msg};
if ($conn->{msg} =~ /\n$/) {
delete $conn->{msg};
} else {
$_ = '';
}
- &{$conn->{rproc}}($conn, $_);
+ &{$conn->{rproc}}($conn, $_) if exists $conn->{rproc};
}
}
}