Vars change
Adrian L Lange [08-07-09 - 18:06]
diff --git a/pError.lua b/pError.lua
index c77befe..6e14c3b 100644
--- a/pError.lua
+++ b/pError.lua
@@ -41,7 +41,7 @@ local function slashCommand(str)
end
end
-local function onEvent(self, event, str, ...)
+local function errorEvent(self, event, str, ...)
if(event == 'UI_ERROR_MESSAGE' and addon.db[1]) then
for k, v in next, addon.db do
if(find(lower(str), v)) then
@@ -63,5 +63,5 @@ addon:SetScript('OnEvent', function(self, event, name)
SLASH_pError1 = '/perror'
SlashCmdList[name] = function(str) slashCommand(lower(str)) end
- UIErrorsFrame:SetScript('OnEvent', onEvent)
+ UIErrorsFrame:SetScript('OnEvent', errorEvent)
end)