X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FDXChannel.pm;h=929e7e530183ed71d62be1c2e4b9ff4701d122ed;hb=9069af884fdddb669a8e83ec8a8509c25b085daa;hp=9812037fce2ee1fa44255555fe6e63c09957c0d3;hpb=bec51340e4ff087605bf58492a53f1fccafc3f74;p=spider.git diff --git a/perl/DXChannel.pm b/perl/DXChannel.pm index 9812037f..929e7e53 100644 --- a/perl/DXChannel.pm +++ b/perl/DXChannel.pm @@ -513,9 +513,11 @@ sub tell_login # sub tell_buddies { - my ($self, $m, $call) = @_; + my ($self, $m, $call, $node) = @_; $call ||= $self->{call}; + $call =~ s/-\d+$//; + my $s = $node ? "$node: $call" : $call; # send info to all logged in thingies my @dxchan = get_all_users(); @@ -523,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, $call)) if grep $_ eq $call, @{$dxchan->user->buddies} ; + $dxchan->send($dxchan->msg($m, $s)) if grep $_ eq $call, @{$dxchan->{user}->{buddies}} ; } }