X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Ftalk.pl;h=45ac857ee935bf7bb7fa7f142435f79da82edf5b;hb=5275b86607057a0960cdf03b41b8092a3d813e57;hp=1f6d155158dc7e3e48437bb0b553fe2cdefe32ca;hpb=329702a31bd4a526077c713b12ede457276c79db;p=spider.git diff --git a/cmd/talk.pl b/cmd/talk.pl index 1f6d1551..45ac857e 100644 --- a/cmd/talk.pl +++ b/cmd/talk.pl @@ -31,13 +31,17 @@ if ($via) { $to = uc $to if $to; $via = uc $via if $via; my $call = $via ? $via : $to; -my $clref = DXCluster->get_exact($call); # try an exact call +my $clref = Route::get($call); # try an exact call my $dxchan = $clref->dxchan if $clref; return (1, $self->msg('e7', $call)) unless $dxchan; # if there is a line send it, otherwise add this call to the talk list # and set talk mode for command mode if ($line) { + my @bad; + if (@bad = BadWords::check($line)) { + return (1, $self->msg('e17', @bad)); + } $dxchan->talk($self->call, $to, $via, $line) if $dxchan; } else { my $s = $to;