local MER, F, E, L, V, P, G = unpack(select(2, ...))
local module = MER:GetModule('MER_Misc')

local _G = _G

function module:BossBanner()
	if E.db.mui.misc.hideBossBanner then
		_G.BossBanner:UnregisterEvent("ENCOUNTER_LOOT_RECEIVED")
	else
		_G.BossBanner:RegisterEvent("ENCOUNTER_LOOT_RECEIVED")
	end
end

module:AddCallback("BossBanner")
module:AddCallbackForUpdate("BossBanner")