-- --------------------
-- TellMeWhen
-- Originally by NephMakes

-- Other contributions by:
--		Sweetmms of Blackrock, Oozebull of Twisting Nether, Oodyboo of Mug'thol,
--		Banjankri of Blackrock, Predeter of Proudmoore, Xenyr of Aszune

-- Currently maintained by
-- Cybeloras of Aerie Peak
-- --------------------


if not TMW then return end

local TMW = TMW
local L = TMW.L
local print = TMW.print
	

local Module = TMW:NewClass("IconModule_RecieveSpellDrags", "IconModule")

Module:SetScriptHandler("OnClick", function(Module, icon, button)
	if not TMW.Locked and TMW.IE and button == "LeftButton" then
		TMW.IE:SpellItemToIcon(icon)
	end
end)

Module:SetScriptHandler("OnReceiveDrag", function(Module, icon, button)
	if not TMW.Locked and TMW.IE then
		TMW.IE:SpellItemToIcon(icon)
	end
end)


