View Single Post
11/25/14, 10:33 AM   #1
SnowmanDK
 
SnowmanDK's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 161
Check if a specific addon is enabled?

Is there a way to check for this?
I ask as I am trying to integrate support for Item Saver in my Bank Manager Revived.
Item Saver uses a global variable which I pull (ItemSaver_IsItemSaved(item.bag, item.slot)),
It returns 1 if the checked item is saved, otherwise nil.
I made that work fine, but when Item Saver is not enabled in AddOns, then I get a "function expected instead of nil" error.

So... I guess I need to make sure Item Saver is enabled in AddOns before even running this check.
Can this be done?
  Reply With Quote