mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
#SET_Client additions
This commit is contained in:
parent
4368bef32f
commit
9cf209d62b
@ -3884,7 +3884,7 @@ do -- SET_CLIENT
|
|||||||
|
|
||||||
--- Builds a set of clients of certain callsigns.
|
--- Builds a set of clients of certain callsigns.
|
||||||
-- @param #SET_CLIENT self
|
-- @param #SET_CLIENT self
|
||||||
-- @param #string Callsigns Can be a string e.g. "Ford", or a table of strings e.g. {"Ford","Enfield","Chevy"}
|
-- @param #string Callsigns Can be a string e.g. "Ford", or a table of strings e.g. {"Uzi","Enfield","Chevy"}
|
||||||
-- @return #SET_CLIENT self
|
-- @return #SET_CLIENT self
|
||||||
function SET_CLIENT:Filtercallsigns( Callsigns )
|
function SET_CLIENT:Filtercallsigns( Callsigns )
|
||||||
if not self.Filter.Callsigns then
|
if not self.Filter.Callsigns then
|
||||||
@ -4286,9 +4286,9 @@ do -- SET_CLIENT
|
|||||||
|
|
||||||
if self.Filter.Playernames then
|
if self.Filter.Playernames then
|
||||||
local MClientPlayername = false
|
local MClientPlayername = false
|
||||||
local playername = MClient:GetPlayerName()
|
local playername = MClient:GetPlayerName() or "Unknown"
|
||||||
for _,_Playername in pairs(self.Filter.Playernames) do
|
for _,_Playername in pairs(self.Filter.Playernames) do
|
||||||
if playername and playername == _Playername then
|
if playername and string.find(playername,_Playername) then
|
||||||
MClientPlayername = true
|
MClientPlayername = true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user