View Single Post
11/28/14, 03:35 AM   #9
votan
 
votan's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2014
Posts: 577
Originally Posted by Sasky View Post
However, consider that Garkin's gets directly to the point: Is the required function there?
If an addon doesn't have any global functions, you're not going to be using one of its functions in your addon.
I knew this discussion will come in the moment I pressed reply.
The question was "Check if a specific addon is enabled?", not "Check if a global function is available?".
There are scenarios, where "Always-check-before-calling" is absolutly sufficient.
And there are scenarios, where such a check should be done once and different functions are registered to be called.
Mainly if used in large, nested loops.
Originally Posted by SnowmanDK View Post
Just to clarify:
As I wrote in my initial post then I wanted to check if Item Saver was enabled, so my addon can take advantage of it's functions, but not fail if Item Saver is not even installed.

Problem was solved with Garkin's answer.
Nethertheless, as all is fine:
Sorry.
  Reply With Quote