Using the code below, the function called for OnUpdate won't get hooked using hooksecurefunc but will if you change it to HookScript.
hooksecurefunc will work for functions used for other scripts.
I don't believe this was the way it worked previously.
Lua Code:
function SomeDopeyfunc(self)
print("A")
end
local f = CreateFrame("Frame", "SomeDopeyFrameName")
f:SetSize(20, 20)
f:SetScript("OnUpdate", SomeDopeyfunc)
local function SomeOtherfunc(self)
print(self)
end
--SomeDopeyFrameName:HookScript("OnUpdate", SomeOtherfunc)
hooksecurefunc("SomeDopeyfunc", SomeOtherfunc)
Edit: Is this intended? Changing SomeDopeyfunc to a local function I get:
[code]
1x A\A.lua:16: hooksecurefunc(): SomeDopeyfunc is not a function
[C]: in function `hooksecurefunc'
A\A.lua:16: in main chunk
[code]