From 8bf31b1b2fe01ca714384c07d3c248564bda6edc Mon Sep 17 00:00:00 2001 From: minima Date: Mon, 16 Oct 2000 18:13:27 +0000 Subject: [PATCH] allow for /J in callsigns to mean Jota not Japan --- Changes | 2 ++ perl/Prefix.pm | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Changes b/Changes index 7c0b1df6..36c23469 100644 --- a/Changes +++ b/Changes @@ -1,5 +1,7 @@ 16Oct00======================================================================= 1. add a ':' after 'G7BRN de G1TLH' in a talk message. +2. added /J to the list of things to ignore (as in G1TLH/J) in prefix +processing (ie /J mean Jota not /JA [Japan]). 04Sep00======================================================================= 1. made PC10,11,12 badword checking dependant on a flag variable ($censorpc) default = 0 (off). diff --git a/perl/Prefix.pm b/perl/Prefix.pm index 263f5f82..69da3085 100644 --- a/perl/Prefix.pm +++ b/perl/Prefix.pm @@ -152,9 +152,9 @@ sub extract $p = $parts[0]; shift @parts if $p =~ /^(WEB|NET)$/o; $p = $parts[$#parts]; - pop @parts if $p =~ /^(\d+|[PABM]|AM|MM|BCN|SIX|WEB|NET|Q\w+)$/o; + pop @parts if $p =~ /^(\d+|[JPABM]|AM|MM|BCN|SIX|WEB|NET|Q\w+)$/o; $p = $parts[$#parts]; - pop @parts if $p =~ /^(\d+|[PABM]|AM|MM|BCN|SIX|WEB|NET|Q\w+)$/o; + pop @parts if $p =~ /^(\d+|[JPABM]|AM|MM|BCN|SIX|WEB|NET|Q\w+)$/o; # can we resolve them by direct lookup foreach $p (@parts) { -- 2.43.0