From: minima Date: Thu, 24 Feb 2005 10:46:35 +0000 (+0000) Subject: constrain broadcasting back to oneself X-Git-Tag: R_1_52~145 X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=46315397f055856a1777104824f70551164bd3b3;p=spider.git constrain broadcasting back to oneself --- diff --git a/perl/Thingy.pm b/perl/Thingy.pm index 10f20f28..08d14667 100644 --- a/perl/Thingy.pm +++ b/perl/Thingy.pm @@ -104,6 +104,10 @@ sub broadcast foreach my $dxchan (DXChannel::get_all()) { next if $dxchan == $main::me; next if grep $dxchan == $_, @_; + next if $dxchan->{call} eq $thing->{origin}; + next if $thing->{user} && !dxchan->is_user && $dxchan->{call} eq $thing->{user}; + + dbg("Thingy::broadcast: sending to $dxchan->{call}") if isdbg('thing'); $thing->send($dxchan); } }