Permalink
Browse files

query roster on P_E_W

  • Loading branch information...
1 parent fd1e718 commit 2595a2a8961f834628df0d18f8dfe5b34c990c95 @durcyn committed Mar 9, 2011
Showing with 8 additions and 0 deletions.
  1. +8 −0 picoGuild.lua
View
@@ -64,6 +64,7 @@ function f:PLAYER_LOGIN()
self:RegisterEvent("GUILD_ROSTER_UPDATE")
self:RegisterEvent("GUILD_XP_UPDATE")
self:RegisterEvent("CHAT_MSG_SYSTEM")
+ self:RegisterEvent("PLAYER_ENTERING_WORLD")
self:RegisterEvent("PLAYER_LOGOUT")
SortGuildRoster("rank")
@@ -80,6 +81,13 @@ function f:PLAYER_LOGOUT()
SortGuildRoster("rank")
end
+function f:PLAYER_ENTERING_WORLD()
+ if IsInGuild() then
+ QueryGuildXP()
+ GuildRoster()
+ end
+end
+
------------------------------
-- Event Handlers --
------------------------------

0 comments on commit 2595a2a

Please sign in to comment.