Skip to content

Commit

Permalink
Print a deprecation notice on startup
Browse files Browse the repository at this point in the history
  • Loading branch information
kemayo committed Nov 12, 2022
1 parent 56eac68 commit 09a422c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions HandyNotes_Lorewalkers.toc
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@
## X-Curse-Project-ID: 45566
## SavedVariables: HandyNotes_LorewalkersDB
## RequiredDeps: HandyNotes
## OptionalDeps: HandyNotes_MistsOfPandariaTreasures

Lore.lua
9 changes: 8 additions & 1 deletion Lore.lua
Original file line number Diff line number Diff line change
@@ -1,13 +1,20 @@
---------------------------------------------------------
-- Addon declaration
HandyNotes_Lorewalkers = LibStub("AceAddon-3.0"):NewAddon("HandyNotes_Lorewalkers","AceEvent-3.0")
HandyNotes_Lorewalkers = LibStub("AceAddon-3.0"):NewAddon("HandyNotes_Lorewalkers","AceEvent-3.0","AceConsole-3.0")
local HL = HandyNotes_Lorewalkers
local HandyNotes = LibStub("AceAddon-3.0"):GetAddon("HandyNotes")
-- local L = LibStub("AceLocale-3.0"):GetLocale("HandyNotes_Lorewalkers", true)

local debugf = tekDebug and tekDebug:GetFrame("Lorewalkers")
local function Debug(...) if debugf then debugf:AddMessage(string.join(", ", tostringall(...))) end end

if IsAddOnLoaded("HandyNotes_MistsOfPandariaTreasures") then
HL:Print("has been replaced by HandyNotes_MistsOfPandariaTreasures and can be removed")
do return end
else
HL:Print("has been replaced by HandyNotes_MistsOfPandariaTreasures, which you should go download instead")
end

---------------------------------------------------------
-- Our db upvalue and db defaults
local db
Expand Down

0 comments on commit 09a422c

Please sign in to comment.