From 9aab84d3d4c4c6ba3304e12e782c67b9f51c960c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kelly=20Crabbe=CC=81?= Date: Wed, 4 Dec 2013 15:47:00 +0100 Subject: [PATCH] last part of the event rewrite --- core.lua | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/core.lua b/core.lua index 2d8cd97..56c18b7 100755 --- a/core.lua +++ b/core.lua @@ -150,6 +150,9 @@ end -- Event handling -LookInTehCorner:SetScript("OnEvent", function(self, event, ...) self[event](self) end) -LookInTehCorner:RegisterEvent"PLAYER_LOGIN" -LookInTehCorner:RegisterEvent"CALENDAR_UPDATE_PENDING_INVITES" \ No newline at end of file +LookInTehCorner:SetScript("OnEvent", function(self, event, ...) + events[event](self, ...) -- call one of the functions above +end) +LookInTehCorner:RegisterEvent"PLAYER_ENTERING_WORLD" +-- LookInTehCorner:RegisterEvent"CALENDAR_UPDATE_PENDING_INVITES" +-- LookInTehCorner:RegisterEvent"UPDATE_PENDING_MAIL" \ No newline at end of file -- 1.7.9.5