Quantcast

-small fix for unguilded people

Xruptor [11-24-11 - 14:38]
-small fix for unguilded people
Filename
BagSync.lua
diff --git a/BagSync.lua b/BagSync.lua
index 7f77a45..e584425 100644
--- a/BagSync.lua
+++ b/BagSync.lua
@@ -244,7 +244,7 @@ function BagSync:GUILD_ROSTER_UPDATE()
 	if not IsInGuild() and BS_DB.guild then
 		BS_DB.guild = nil
 		self:FixDB_Data(true)
-	else
+	elseif IsInGuild() then
 		--if they don't have guild name store it or update it
 		if GetGuildInfo("player") then
 			if not BS_DB.guild or BS_DB.guild ~= GetGuildInfo("player") then
@@ -598,7 +598,7 @@ end

 function BagSync:ScanGuildBank()
 	--GetCurrentGuildBankTab()
-	if not IsInGuild() or not BS_DB.guild then return nil end
+	if not IsInGuild() then return end

 	BS_GD[BS_DB.guild] = BS_GD[BS_DB.guild] or {}