I am trying my second Ace3 addon for WoW. The first works well but the second gives me the following message when I launch WoW Ithough the addon works just fine). The line that generates the message is:
There is already an addon that register itself as MudgeTools. It might be in another file for the same addon. You may want to use a GetAddon instead of NewAddon somewhere.
Can anybody help me with this?
---------------------
Date: 2009-10-08 13:14:25
ID: 1
Error occured in: Global
Count: 1
Message: ..\AddOns\MudgeTools\core.lua line 2:
Usage: NewAddon([object,] name, [lib, lib, lib, ...]): 'name' - Addon 'MudgeTools' already exists.
Debug:
[C]: ?
[C]: error()
Ace3\AceAddon-3.0\AceAddon-3.0.lua:93: NewAddon()
MudgeTools\core.lua:2: in main chunk
-------
(You should also limit the addon "variable" to the local scope; there's no reason to have an unnecessary global laying around.)
Any other files that need to reference the addon should retreive the addon, not try to create it again: