X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;ds=inline;f=perl%2FDXCommandmode.pm;h=f28997860f1399a16e782abfcf5970303f159280;hb=776d7bb9277c9d24708e297f240395b51b0aaa93;hp=18f37e88cb483c806ccd9750451f229ef45c9f9f;hpb=893a6f6711e298eda86d8696093bf223c431729f;p=spider.git diff --git a/perl/DXCommandmode.pm b/perl/DXCommandmode.pm index 18f37e88..f2899786 100644 --- a/perl/DXCommandmode.pm +++ b/perl/DXCommandmode.pm @@ -54,9 +54,6 @@ $cmdimportdir = "$main::root/cmd_import"; # the base directory for importing com # this does not exist as default, you need to create it manually # -use vars qw($VERSION $BRANCH); -($VERSION, $BRANCH) = dxver(q$Revision$); - # # obtain a new connection this is derived from dxchannel # @@ -384,11 +381,11 @@ sub send_talks my ($to, $via) = $ent =~ /(\S+)>(\S+)/; $to = $ent unless $to; - my $call = $via ? $via : $to; + my $call = $via && $via ne '*' ? $via : $to; my $clref = Route::get($call); my $dxchan = $clref->dxchan if $clref; if ($dxchan) { - $dxchan->talk($self->{call}, $to, $via, $line); + $dxchan->talk($self->{call}, $to, undef, $line); } else { $self->send($self->msg('disc2', $via ? $via : $to)); my @l = grep { $_ ne $ent } @{$self->{talklist}};