Mercurial > wow > reagentmaker
view utils.lua @ 0:eba26c900e99
Initial commit, save state before using secure menus
author | contrebasse |
---|---|
date | Mon, 28 Mar 2011 22:32:26 +0200 |
parents | |
children | ed0582126cae |
line wrap: on
line source
local addonName, A = ... do -- WoW frames local DEFAULT_CHAT_FRAME = DEFAULT_CHAT_FRAME function A.DEBUG(msg) DEFAULT_CHAT_FRAME:AddMessage(msg or "nil",1,0,0) end -- function end do -- Lua functions local select = select local tonumber = tonumber local sfind = string.find function A.link2ID(link) return tonumber(select(3,sfind(link or "", "-*:(%d+)[:|].*")) or "") end -- function end -- do