From 72f6ef154a3401f9c6da5ef00808afb03c43a87f Mon Sep 17 00:00:00 2001 From: minima Date: Sat, 7 Jan 2006 17:47:22 +0000 Subject: [PATCH] fix new swearing code. --- perl/DXMsg.pm | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/perl/DXMsg.pm b/perl/DXMsg.pm index f4a1b7ab..fe65cdb3 100644 --- a/perl/DXMsg.pm +++ b/perl/DXMsg.pm @@ -355,13 +355,12 @@ sub handle_32 push @words, [$_, @bad] if @bad; } if (@words) { - dbg("$ref->{from} swore: $ref->{to} '$ref->{subject}' origin: $ref->{origin} via " . $dxchan->call) if isdbg('msg'); - Log('msg',"$ref->{from} swore: $ref->{to} origin: $ref->{origin} via " . $dxchan->call); - dbg("subject: $ref->{subject}"); - Log('msg',"subject: $ref->{subject}"); + LogDbg('msg',"$ref->{from} swore: $ref->{to} origin: $ref->{origin} via " . $dxchan->call); + LogDbg('msg',"subject: $ref->{subject}"); for (@words) { - dbg("line: $_->[0] (using words: ". join(',',@{$_->[1]}).")"); - Log('msg', "line: $_->[0] (using words: ". join(',',@{$_->[1]}).")"); + my $r = $_; + my $line = shift @$r; + LogDbg('msg', "line: $line (using words: ". join(',', @$r).")"); } $ref->stop_msg($fromnode); return; @@ -1114,7 +1113,7 @@ sub do_send_stuff $ref->notify; } } else { - Log('msg', $self->call . " swore to @{$loc->{to}} subject: '$loc->{subject}' in msg, REJECTED"); + LogDbg('msg', $self->call . " swore to @{$loc->{to}} subject: '$loc->{subject}' in msg, REJECTED"); } delete $loc->{lines}; -- 2.43.0