Fix a bug in FireMessage argument checking
James Whitehead II [11-22-10 - 19:10]
Fix a bug in FireMessage argument checking
diff --git a/AddonCore.lua b/AddonCore.lua
index af9b242..6722720 100644
--- a/AddonCore.lua
+++ b/AddonCore.lua
@@ -97,7 +97,7 @@ function addon:UnregisterMessage(name)
end
function addon:FireMessage(name, ...)
- assert(type(event) == "string", "Invalid argument to 'FireMessage'")
+ assert(type(name) == "string", "Invalid argument to 'FireMessage'")
local handler = messageMap[name]
local handler_t = type(handler)
if handler_t == "function" then