add pc93 talk messages
[spider.git] / perl / DXChannel.pm
index b8824cf4d43923290e35ac16f1e58c189bae5790..98617515981c8821f8590031aa41984ef277c253 100644 (file)
@@ -119,14 +119,14 @@ $count = 0;
                  lastmsgpoll => '0,Last Msg Poll,atime',
                  inscript => '9,In a script,yesno',
                  handle_xml => '9,Handles XML,yesno',
+                 do_pc92 => '9,Handles PC92,yesno',
+                 do_pc93 => '9,Handles PC93,yesno',
                  inqueue => '9,Input Queue,parray',
                 );
 
+
 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));
-$main::build += $VERSION;
-$main::branch += $BRANCH;
+($VERSION, $BRANCH) = dxver(q$Revision$);
 
 # object destruction
 sub DESTROY
@@ -472,7 +472,7 @@ sub disconnect
        my $user = $self->{user};
        
        $user->close() if defined $user;
-       $self->{conn}->disconnect;
+       $self->{conn}->disconnect if $self->{conn};
        $self->del();
 }