Quantcast

* Added version information to TomTom

James Whitehead II [03-26-08 - 11:37]
* Added version information to TomTom
Filename
TomTom.lua
TomTom.toc
diff --git a/TomTom.lua b/TomTom.lua
index 938fffe..b9beab6 100755
--- a/TomTom.lua
+++ b/TomTom.lua
@@ -18,8 +18,11 @@ TomTom = {
 		self.eventFrame:UnregisterEvent(event)
 		self.events[event] = nil
 	end,
+	version = GetAddOnMetadata("TomTom", "Version")
 }

+if TomTom.version == "wowi:revision" then TomTom.version = "SVN" end
+
 TomTom.eventFrame:SetScript("OnEvent", function(self, event, ...)
 	local method = TomTom.events[event]
 	if method and TomTom[method] then
diff --git a/TomTom.toc b/TomTom.toc
index 02c6306..a6c8659 100755
--- a/TomTom.toc
+++ b/TomTom.toc
@@ -1,6 +1,6 @@
 ## Interface: 20400
 ## Title: TomTom
-## Version: rwowi:revision
+## Version: wowi:revision
 ## Notes: Acts as your portable navigation assistant
 ## SavedVariables: TomTomDB, TomTomWaypoints