X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fwx.pl;h=22b5e0ccc262075b1908d6802837a766c520464d;hb=ed6790555f077eb521b8805113155a2ff99cc47e;hp=94db5d83ae32f62ccc34c3b768916b5bbb71a81a;hpb=324bd80ed4aef7e2636f5a03288788ce11ab2663;p=spider.git diff --git a/cmd/wx.pl b/cmd/wx.pl index 94db5d83..22b5e0cc 100644 --- a/cmd/wx.pl +++ b/cmd/wx.pl @@ -23,6 +23,8 @@ my $from = $self->call; my $t = ztime(time); my $tonode; my $sysopflag; +return (1, $self->msg('e5')) if $self->remotecmd || $self->inscript; +return (1, $self->msg('e28')) unless $self->registered; if ($sort eq "FULL") { $line =~ s/^$f[0]\s+//; # remove it @@ -36,11 +38,11 @@ if ($sort eq "FULL") { $to = "LOCAL"; } -DXProt::broadcast_list("WX de $from <$t>: $line", 'wx', undef, @locals); +DXChannel::broadcast_list("WX de $from <$t>: $line", 'wx', undef, @locals); if ($to ne "LOCAL") { $line =~ s/\^//og; # remove ^ characters! my $pc = DXProt::pc12($from, $line, $tonode, $sysopflag, 1); - DXProt::broadcast_ak1a($pc); + DXChannel::broadcast_nodes($pc, $main::me); } return (1, ());