2 # XML IM handler (Chat, Announces, Talk)
6 # Copyright (c) Dirk Koopman, G1TLH
17 use Time::HiRes qw(gettimeofday tv_interval);
19 use vars qw($VERSION $BRANCH @ISA %pings);
20 $VERSION = sprintf( "%d.%03d", q$Revision$ =~ /(\d+)\.(\d+)/ );
21 $BRANCH = sprintf( "%d.%03d", q$Revision$ =~ /\d+\.\d+\.(\d+)\.(\d+)/ || (0,0));
22 $main::build += $VERSION;
23 $main::branch += $BRANCH;
28 # This is the general purpose IM sentence
30 # It is of the form: <chat [to=<user call>|<node call>|<chat group>] ...>the text</chat>
34 # announce/full (no to=)
35 # announce/local (to="$mycall")
36 # announce/<node call> (to="<node call>")
37 # chat <group> (to="<group>")
38 # talk <user call> (to="<user call>")
46 if ($self->{to} eq $main::mycall) {
49 $self->route($dxchan);
56 unless (exists $self->{'-pcxx'}) {
57 if (my $to = $self->{to}) {
58 if (Route::Node::get($to)) {
62 $self->{'-pcxx'} = DXProt::pc51($self->{to}, $self->{o}, $self->{s});
64 return $self->{'-pcxx'};