Quantcast

prevent load twice

yaroot [10-18-10 - 11:24]
prevent load twice
Filename
guild.lua
diff --git a/guild.lua b/guild.lua
index cb5e5be..2cf7855 100644
--- a/guild.lua
+++ b/guild.lua
@@ -56,7 +56,11 @@ local function tradeupdate()
     end
 end

+local loaded = true
 hooksecurefunc('GuildFrame_LoadUI', function()
+    if(loaded) then return end
+    loaded = true
+
     hooksecurefunc('GuildRoster_SetView', viewChanged)
     hooksecurefunc('GuildRoster_Update', update)
     hooksecurefunc(GuildRosterContainer, 'update', update)