WSJT-X/lib/stdmsg.f90
Joe Taylor 0e96882d8b Improve the way messages with compound calls are automatically generated.
Routine packmsg now tries the shortlist (Type 1 prefix or suffix) first.
Then it tries to to make a valid message using a Type 2 prefix or suffix.
If both fail, it packs the first 13 characters as a free-text message.

The GUI now generates the most useful messages with compound callsigns
of all valid types.



git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@4533 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
2014-10-19 00:56:41 +00:00

12 lines
216 B
Fortran

logical*1 function stdmsg(msg0)
character*22 msg0,msg
integer dat(12)
call packmsg(msg0,dat,itype)
call unpackmsg(dat,msg)
stdmsg=(msg.eq.msg0) .and. (itype.ge.0)
return
end function stdmsg