change place of chat target in pc12
[spider.git] / perl / DXCommandmode.pm
index 65d5eb0392d4699fa63672f1de400a46900f0f11..5a53dc6e117fe291216fd36ffc8c350a7ec118d6 100644 (file)
@@ -813,10 +813,10 @@ sub chat
        my $text = shift;
        my ($filter, $hops);
 
-       return unless grep uc $_ eq $target, @{$self->{user}->{group}};
+       return unless grep uc $_ eq $to, @{$self->{user}->{group}};
        
        $text =~ s/^\#\d+ //;
-       my $buf = "$target de $_[0]: $text";
+       my $buf = "$to de $_[0]: $text";
        $buf =~ s/\%5E/^/g;
        $buf .= "\a\a" if $self->{beep};
        $self->local_send('C', $buf);