try to get the origin routing correct for non aranea pings
[spider.git] / perl / Thingy.pm
index efacdbb3219f0864a587098e841229abd404ee8a..24c8b98f78c72d5a682e24b3e3e16cf2c2039036 100644 (file)
@@ -113,7 +113,8 @@ sub broadcast
        dbg("Thingy::broadcast: " . $thing->ascii) if isdbg('thing'); 
 
        my @dxchan;
-       my $to ||= $thing->{touser};
+       my $to ||= $thing->{route}; 
+       $to     ||= $thing->{touser};
        $to ||= $thing->{group};
        if ($to && is_callsign($to) && (my $ref = Route::get($to))) {
                dbg("Thingy::broadcast: routing for $to") if isdbg('thing');