stop logging about non-faction NPCs

This commit is contained in:
Lilian Jónsdóttir 2021-09-11 16:41:35 -07:00
parent 810225dd29
commit 6df8bc6145

View file

@ -115,15 +115,15 @@ end
local function factionHelperChecks(npc) local function factionHelperChecks(npc)
if not config.factionMembersHelp then return false end if not config.factionMembersHelp then return false end
if not genericNPCChecks(npc) then return false end
-- now that that's out of the way
local name = npc.object.name local name = npc.object.name
local npcFaction = npc.object.faction local npcFaction = npc.object.faction
if not npcFaction then return false end if not npcFaction then return false end
if not npcFaction.playerJoined then return false end if not npcFaction.playerJoined then return false end
if not genericNPCChecks(npc) then return false end
-- now that that's out of the way
if config.ignoredFactions[npcFaction.id] then if config.ignoredFactions[npcFaction.id] then
log("Ignored faction %s, not alerting %s", npcFaction, name) log("Ignored faction %s, not alerting %s", npcFaction, name)
return false return false