Quantcast

last part of the event rewrite

Kelly Crabbé [12-04-13 - 14:47]
last part of the event rewrite
Filename
core.lua
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