2 # XML IM handler (Chat, Announces, Talk)
6 # Copyright (c) Dirk Koopman, G1TLH
16 use Time::HiRes qw(gettimeofday tv_interval);
22 # This is the general purpose IM sentence
24 # It is of the form: <chat [to=<user call>|<node call>|<chat group>] ...>the text</chat>
28 # announce/full (no to=)
29 # announce/local (to="$mycall")
30 # announce/<node call> (to="<node call>")
31 # chat <group> (to="<group>")
32 # talk <user call> (to="<user call>")
40 if ($self->{to} eq $main::mycall) {
43 $self->route($dxchan);
50 unless (exists $self->{'-pcxx'}) {
51 if (my $to = $self->{to}) {
52 if (Route::Node::get($to)) {
56 $self->{'-pcxx'} = DXProt::pc51($self->{to}, $self->{o}, $self->{s});
58 return $self->{'-pcxx'};