X-Git-Url: http://www.dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FDXChannel.pm;h=efaffb6c04d80be433ac080fd2470c53ea340185;hb=edfc15583881f720a65516d975d26cdb6b7c8469;hp=929e7e530183ed71d62be1c2e4b9ff4701d122ed;hpb=9b47e7023d41616a9efa885ef9338277dc2ab851;p=spider.git diff --git a/perl/DXChannel.pm b/perl/DXChannel.pm index 929e7e53..efaffb6c 100644 --- a/perl/DXChannel.pm +++ b/perl/DXChannel.pm @@ -517,7 +517,7 @@ sub tell_buddies $call ||= $self->{call}; $call =~ s/-\d+$//; - my $s = $node ? "$node: $call" : $call; + $m .= 'n' if $node; # send info to all logged in thingies my @dxchan = get_all_users(); @@ -525,7 +525,7 @@ sub tell_buddies foreach $dxchan (@dxchan) { next if $dxchan == $self; next if $dxchan->{call} eq $main::mycall; - $dxchan->send($dxchan->msg($m, $s)) if grep $_ eq $call, @{$dxchan->{user}->{buddies}} ; + $dxchan->send($dxchan->msg($m, $call, $node)) if grep $_ eq $call, @{$dxchan->{user}->{buddies}} ; } } @@ -724,6 +724,19 @@ sub process } } +sub handle_xml +{ + my $self = shift; + my $r = 0; + + if (DXXml::available()) { + $r = $self->{handle_xml} || 0; + } else { + delete $self->{handle_xml} if exists $self->{handle_xml}; + } + return $r; +} + #no strict; sub AUTOLOAD {