X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fwx.pl;h=17aef89efb772ef05a718a347697b63e9553adee;hb=accadb4dd51333fae2726e8aa52564abc42f2e70;hp=ad9f0d474d6ae51e072f1e2080fc27e5b6b1af1f;hpb=0824a94355e5fb2b4c379bb013d66466725629f5;p=spider.git diff --git a/cmd/wx.pl b/cmd/wx.pl index ad9f0d47..17aef89e 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; +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", @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($self, $line, $tonode, $sysopflag, 1); - DXProt::broadcast_ak1a($pc); + my $pc = DXProt::pc12($from, $line, $tonode, $sysopflag, 1); + DXChannel::broadcast_nodes($pc, $main::me); } return (1, ());