Quantcast

-minor update

Xruptor [11-01-11 - 12:49]
-minor update
Filename
XanReputation.lua
XanReputation.toc
diff --git a/XanReputation.lua b/XanReputation.lua
index 6c5c6d4..ac97c45 100644
--- a/XanReputation.lua
+++ b/XanReputation.lua
@@ -33,14 +33,14 @@ function f:PLAYER_LOGIN()
 	self:CreateREP_Frame()
 	self:RestoreLayout("xanReputation")

-	self:UnregisterEvent("PLAYER_LOGIN")
-	self.PLAYER_LOGIN = nil
-
 	SLASH_XANREPUTATION1 = "/xanrep";
 	SlashCmdList["XANREPUTATION"] = xanReputation_SlashCommand;

 	local ver = GetAddOnMetadata("xanReputation","Version") or '1.0'
 	DEFAULT_CHAT_FRAME:AddMessage(string.format("|cFF99CC33%s|r [v|cFFDF2B2B%s|r] loaded:   /xanrep", "xanReputation", ver or "1.0"))
+
+	self:UnregisterEvent("PLAYER_LOGIN")
+	self.PLAYER_LOGIN = nil
 end

 function xanReputation_SlashCommand(cmd)
diff --git a/XanReputation.toc b/XanReputation.toc
index 1651c33..8d7c4eb 100644
--- a/XanReputation.toc
+++ b/XanReputation.toc
@@ -2,7 +2,7 @@
 ## Title: xanReputation
 ## Notes: A small window display current reputation xp
 ## Author: Xruptor
-## Version: 1.9
+## Version: 1.9.1
 ## SavedVariablesPerCharacter: XanREP_DB

 libs\LibStub.lua