]> dxcluster.net Git - spider.git/commitdiff
bit more sophisticated
authorminima <minima>
Mon, 22 Jan 2007 23:04:29 +0000 (23:04 +0000)
committerminima <minima>
Mon, 22 Jan 2007 23:04:29 +0000 (23:04 +0000)
perl/DXProt.pm

index b46d00f97d95b9de5be22bf5b43c87236302a47c..4b32a7150c35440747ed1d8a0c8e4c8d75f0b356 100644 (file)
@@ -1487,7 +1487,7 @@ sub handle_41
        $user = DXUser->new($call) unless $user;
                        
        if ($_[2] == 1) {
-               if ($_[2] =~ /spotter/i) {
+               if (($_[3] =~ /spotter/i || $_[3] =~ /self/i) && $user->name && $user->name ne $_[3]) {
                        dbg("PCPROT: invalid name") if isdbg('chanerr');
                        return;
                }