Skip to content

Commit

Permalink
Block the spam button from showing when fighting an encounter.
Browse files Browse the repository at this point in the history
  • Loading branch information
funkydude committed Oct 29, 2016
1 parent adfac7d commit 4ee9ff3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions BadBoy.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@

-- GLOBALS: BADBOY_BLACKLIST, BadBoyLog, ChatFrame1, GetTime, print, ReportPlayer, CalendarGetDate, SetCVar
-- GLOBALS: BADBOY_BLACKLIST, BADBOY_TOOLTIP, BadBoyLog, ChatFrame1, GetTime, print, ReportPlayer, CalendarGetDate, SetCVar
-- GLOBALS: CalendarFrame, GameTooltip, UIErrorsFrame, C_Timer, IsEncounterInProgress, GameTooltip_Hide
local myDebug = false

local reportMsg = "Spam blocked, click to report!"
Expand Down Expand Up @@ -756,7 +757,7 @@ local eventFunc = function(_, event, msg, player, _, _, _, flag, channelId, chan
if myDebug then
print("|cFF33FF99BadBoy_REPORT|r: ", debug, "-", event, "-", trimmedPlayer)
else
if not BADBOY_BLACKLIST or not BADBOY_BLACKLIST[guid] then
if (not BADBOY_BLACKLIST or not BADBOY_BLACKLIST[guid]) and not IsEncounterInProgress() then
spamCollector[guid] = lineId
if BADBOY_TOOLTIP then
spamLogger[guid] = debug
Expand Down

0 comments on commit 4ee9ff3

Please sign in to comment.