Clique

Addons
6,018,645 Downloads Last Updated: Sep 2, 2019 Game Version: 8.2.0

AddonCore.lua function uses variable event but does not declare it

#262 By  rilgamon

Created Aug 26, 2019 Updated Aug 26, 2019

Open

function addon:FireMessage(name, ...)
assert(type(name) == "string", "Invalid argument to 'FireMessage'")
local handler = messageMap[name]
local handler_t = type(handler)
if handler_t == "function" then
handler(name, ...)
elseif handler_t == "string" and addon[handler] then
addon[handler](addon, event, ...)
end
end


To post a comment, please login or register a new account.