send only to commandmode users that are addressed
[spider.git] / perl / Thingy / Ping.pm
index d3fa90f401286f8440ef81328892a304fb6fc3be..a1ab4599fa4cebe310fb60774c5369a6851c61e7 100644 (file)
@@ -72,7 +72,10 @@ sub gen_DXCommandmode
 {
        my $thing = shift;
        my $dxchan = shift;
-       my $buf = $dxchan->msg('pingi', ($thing->{user} || $thing->{origin}), $thing->{ft}, $thing->{fave});
+       my $buf;
+       if ($dxchan->{call} eq $thing->{touser}) {
+               $buf = $dxchan->msg('pingi', ($thing->{user} || $thing->{origin}), $thing->{ft}, $thing->{fave});
+       }
        return $buf;
 }