ADDON_LOADED event will now unregister itself after AddOn has loaded.
F16Gaming (Laptop) [04-03-12 - 10:30]
ADDON_LOADED event will now unregister itself after AddOn has loaded.
diff --git a/Events.lua b/Events.lua
index 4ae0f1b..fa9a652 100644
--- a/Events.lua
+++ b/Events.lua
@@ -24,12 +24,6 @@ local CM = C.ChatManager
local QM = C.QueueManager
local AC = C.AddonComm
---[[
-function T.Events.CHAT_MSG_ADDON(event, ...)
-
-end
---]]
-
--- Event handler for ADDON_LOADED
-- @name Command.Events.ADDON_LOADED
-- @param self Reference to Command object.
@@ -39,6 +33,7 @@ function C.Events.ADDON_LOADED(self, ...)
local name = (select(1, ...))
if name:lower() ~= self.Name:lower() then return end
self:Init()
+ C.Frame:UnregisterEvent("ADDON_LOADED")
end
--- Event handler for LFG_UPDATE