mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
#GROUP
* Fix ignore leading spaces in customized callsigns
This commit is contained in:
parent
0076130483
commit
c1ab3b5476
@ -2769,12 +2769,12 @@ function GROUP:GetCustomCallSign(ShortCallsign,Keepnumber,CallsignTranslations)
|
||||
if Keepnumber then
|
||||
shortcallsign = string.match(groupname,"#(.+)") -- Ghostrider 219
|
||||
else
|
||||
shortcallsign = string.match(groupname,"#([%a]+)") -- Ghostrider
|
||||
shortcallsign = string.match(groupname,"#%s*([%a]+)") -- Ghostrider
|
||||
end
|
||||
personalized = true
|
||||
elseif IsPlayer and string.find(self:GetPlayerName(),"|") then
|
||||
-- personalized flight name in group naming
|
||||
shortcallsign = string.match(self:GetPlayerName(),"|([%a]+)") -- Ghostrider
|
||||
shortcallsign = string.match(self:GetPlayerName(),"|%s*([%a]+)") -- Ghostrider
|
||||
personalized = true
|
||||
end
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user