Hi all. with updating one of my addons i got this error.
for Cata
Code:
Interface\AddOns\ctest\ctest.lua:126: bad argument #1 to 'find' (string expected, got nil)
Count: 1
Call Stack:
[C]: ?
[C]: in function `find'
Interface\AddOns\ctest\ctest.lua:126: in function <Interface\AddOns\ctest\ctest.lua:125>
Code:
Uinotice = true
if Uinotice2 then
local c2not = CreateFrame("Frame")
c2not:RegisterEvent("CHAT_MSG_CHANNEL")
c2not:SetScript("OnEvent", function()
if string.find(arg1, "A buyer has been found for your auction of .+%.") then
UIErrorsFrame:AddMessage(arg1, 1.0, 1.0, 0.0, 1.0, UIERRORS_HOLD_TIME)
end
end)
end
thanks for your time.