View Single Post
04/04/22, 07:46 AM   #2
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,989
Did you disable all other addons for testing, just to make sure it's nothing any other lib or addon interferes with?
Do you get any error message as this happens?

Your code looks okay to me and the return true should prevent the original function to start.
But maybe the function DestroyAllJunk is global but potected, so you cannot hook them. You should get an error message then I think (or it will just fail silently).

Try to use IsProtectedFunction(functionName) to check that.
  Reply With Quote