From 9cf209d62b88af6a1897b34fbadb3738f3e003c5 Mon Sep 17 00:00:00 2001 From: Applevangelist Date: Wed, 14 Dec 2022 09:42:10 +0100 Subject: [PATCH] #SET_Client additions --- Moose Development/Moose/Core/Set.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Moose Development/Moose/Core/Set.lua b/Moose Development/Moose/Core/Set.lua index e7dbff714..42faef612 100644 --- a/Moose Development/Moose/Core/Set.lua +++ b/Moose Development/Moose/Core/Set.lua @@ -3808,8 +3808,8 @@ do -- SET_CLIENT Countries = nil, ClientPrefixes = nil, Zones = nil, - Playernames = nil, - Callsigns = nil, + Playernames = nil, + Callsigns = nil, }, FilterMeta = { Coalitions = { @@ -3884,7 +3884,7 @@ do -- SET_CLIENT --- Builds a set of clients of certain callsigns. -- @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 function SET_CLIENT:Filtercallsigns( Callsigns ) if not self.Filter.Callsigns then @@ -4286,9 +4286,9 @@ do -- SET_CLIENT if self.Filter.Playernames then local MClientPlayername = false - local playername = MClient:GetPlayerName() + local playername = MClient:GetPlayerName() or "Unknown" for _,_Playername in pairs(self.Filter.Playernames) do - if playername and playername == _Playername then + if playername and string.find(playername,_Playername) then MClientPlayername = true end end