Quantcast

Make sure that users don't run both addons at the same time

Adrian L Lange [08-10-14 - 16:47]
Make sure that users don't run both addons at the same time
Filename
Config.lua
diff --git a/Config.lua b/Config.lua
index 714d1e4..a78690f 100644
--- a/Config.lua
+++ b/Config.lua
@@ -47,6 +47,11 @@ Panel:Hide()

 Panel:RegisterEvent('PLAYER_LOGIN')
 Panel:SetScript('OnEvent', function()
+	if(IsAddOnLoaded('Monomyth')) then
+		DisableAddOn('Monomyth')
+		print('|cffff8080QuickQuest:|r You\'re running a conflicting addon (Monomyth), type /reload to resolve')
+	end
+
 	QuickQuestDB = QuickQuestDB or defaults

 	for key, value in next, defaults do