From 94a759b92dafc1ba1a4e14d07175111a230658bd Mon Sep 17 00:00:00 2001 From: atomaka Date: Wed, 31 Aug 2011 11:20:09 -0400 Subject: [PATCH] Load the valor point reset date from the calendar as soon as possible. --- ChoreTracker.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ChoreTracker.lua b/ChoreTracker.lua index 4672f60..5a6128d 100644 --- a/ChoreTracker.lua +++ b/ChoreTracker.lua @@ -133,6 +133,8 @@ function core:OnEnable() self:RegisterChatCommand('ct', 'ViewChores'); self:RegisterEvent('UPDATE_INSTANCE_INFO', 'UpdateChores') + self:RegisterEvent('CALENDAR_UPDATE_EVENT_LIST', 'UpdateChores') + LoadAddOn("Blizzard_Calendar") end function core:ViewChores() @@ -247,9 +249,7 @@ function core:GetNextVPReset() resetDate.hour = resetTime.hour resetDate.min = resetTime.min resetDate.sec = resetTime.sec - + return time(resetDate) - else - print('resetDate not set') end end \ No newline at end of file