From 3c13e9a265112b270517f96661b2e94b8e9efd3c Mon Sep 17 00:00:00 2001 From: Xruptor Date: Mon, 14 Jun 2010 17:59:21 -0400 Subject: [PATCH] -Display login version information and declaration that mod was successfully loaded. --- XanDurability.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/XanDurability.lua b/XanDurability.lua index cb79402..2ca3579 100644 --- a/XanDurability.lua +++ b/XanDurability.lua @@ -40,6 +40,9 @@ function f:PLAYER_LOGIN() SLASH_XANDURABILITY1 = "/xdu"; SlashCmdList["XANDURABILITY"] = XanDurability_SlashCommand; + + local ver = GetAddOnMetadata("XanDurability","Version") or '1.0' + DEFAULT_CHAT_FRAME:AddMessage(string.format("|cFF99CC33%s|r [v|cFFDF2B2B%s|r] Loaded", "XanDurability", ver or "1.0")) end function XanDurability_SlashCommand(cmd) -- 1.7.9.5