X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fwx.pl;h=dc3dc7296c14542cdbf1c44df81ffad233b7f416;hb=766014807e2521cc60a219c6eda5b49d13ffc70f;hp=73e2e56677ba4fc678f4ed232cf7f7ea387bf6ab;hpb=c3505bcfc922cd712bad2c20b3479cf8d1dc54fe;p=spider.git diff --git a/cmd/wx.pl b/cmd/wx.pl index 73e2e566..dc3dc729 100644 --- a/cmd/wx.pl +++ b/cmd/wx.pl @@ -23,7 +23,7 @@ my $t = ztime(time); my $tonode; my $via; return (1, $self->msg('e5')) if $self->remotecmd || $self->inscript; -return (1, $self->msg('e28')) unless $self->registered; +return (1, $self->msg('e28')) unless $self->isregistered; if ($sort eq "FULL") { $line =~ s/^$f[0]\s+//; # remove it @@ -55,8 +55,10 @@ if ($drop) { return (1, ()); } -Log('ann', $via ? $via : '*', $from, $line); -$main::me->normal(DXProt::pc93($to, $from, $via, $line)); +my $ipaddr = DXCommandmode::alias_localhost($self->hostname || '127.0.0.1'); + +Log('ann', $via ? $via : '*', $from, $line, $ipaddr); +$main::me->normal(DXProt::pc93($to, $from, $via, $line, undef, $ipaddr)); #DXChannel::broadcast_list("WX de $from <$t>: $line", 'wx', undef, @locals); #if ($to ne "LOCAL") {