From d67abf428ecd5d9900f7f68cb40fc26149769cb6 Mon Sep 17 00:00:00 2001 From: Xruptor Date: Wed, 29 Dec 2010 09:10:09 -0500 Subject: [PATCH] -slight update --- RightClickSelfCast.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/RightClickSelfCast.lua b/RightClickSelfCast.lua index 5a95409..6fae405 100644 --- a/RightClickSelfCast.lua +++ b/RightClickSelfCast.lua @@ -21,9 +21,6 @@ f:SetScript("OnEvent", function(self, event, ...) self[event](self, ...) end) function f:PLAYER_LOGIN() - self:UnregisterEvent("PLAYER_LOGIN") - self.PLAYER_LOGIN = nil - --this is for the mod ExtraBar (Author: Cowmonster) --http://www.wowinterface.com/downloads/info14492-ExtraBar.html for id=1, 12 do @@ -48,6 +45,9 @@ function f:PLAYER_LOGIN() end end + self:UnregisterEvent("PLAYER_LOGIN") + self.PLAYER_LOGIN = nil + end if IsLoggedIn() then f:PLAYER_LOGIN() else f:RegisterEvent("PLAYER_LOGIN") end \ No newline at end of file -- 1.7.9.5