Added count of Logins

His Dad [04-28-15 - 09:04]
Added count of Logins
Filename
history.lua
diff --git a/history.lua b/history.lua
index 537b2fd..721ccdb 100644
--- a/history.lua
+++ b/history.lua
@@ -347,6 +347,10 @@ function hist.Initialise(_, addOnName)


 	hist.me["LoginTime"] = GetTimeStamp()
+	if hist.me.logins == nil then
+		hist.me.logins = 0
+	end
+	hist.me.logins = hist.me.logins +1		-- count them.

 	EVENT_MANAGER:RegisterForEvent(hist.name, EVENT_ACHIEVEMENT_AWARDED, Achievement)
 	EVENT_MANAGER:RegisterForEvent(hist.name, EVENT_LEVEL_UPDATE, levelup)