Skip to content

Commit

Permalink
Fix a guid error
Browse files Browse the repository at this point in the history
  • Loading branch information
funkydude committed Oct 27, 2016
1 parent d61c3f7 commit 65c51a6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions BadBoy.lua
Original file line number Diff line number Diff line change
Expand Up @@ -744,6 +744,7 @@ local blockedLineId, chatLines, chatPlayers = 0, {}, {}
local spamCollector, spamLogger, prevShow = {}, {}, 0
local btn
local function BadBoyIsFriendly(name, flag, lineId, guid)
if not guid then return true end -- LocalDefense automated prints
local _, characterName = BNGetGameAccountInfoByGUID(guid)
if characterName or not CanComplainChat(lineId) or IsGuildMember(guid) or IsCharacterFriend(guid) or UnitInRaid(name) or UnitInParty(name) or flag == "GM" or flag == "DEV" then
return true
Expand Down

0 comments on commit 65c51a6

Please sign in to comment.