From: minima Date: Mon, 10 Mar 2003 12:47:45 +0000 (+0000) Subject: remove probable chat lines coming in with '*' sysop flag X-Git-Tag: PRE-1-52~32 X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=f726c14c2f603c02eabecc4526e588354a3a7e0b;p=spider.git remove probable chat lines coming in with '*' sysop flag --- diff --git a/perl/DXProt.pm b/perl/DXProt.pm index 6bb1aecf..25e98cc4 100644 --- a/perl/DXProt.pm +++ b/perl/DXProt.pm @@ -611,6 +611,12 @@ sub handle_12 $self->send_chat($line, @_[1..6]); } elsif ($_[2] eq '*' || $_[2] eq $main::mycall) { + # ignore something that looks like a chat line coming in with sysop + # flag - this is a kludge... + if ($_[3] =~ /^\#\d+ / && $_[4] eq '*') { + dbg('PCPROT: Probable chat rewrite, dropped') if isdbg('chanerr'); + return; + } # here's a bit of fun, convert incoming ann with a callsign in the first word # or one saying 'to ' to a talk if we can route to the recipient