Quantcast

-Fix for a nil link issue that was happening in 6.7.6

Xruptor [09-30-12 - 11:56]
-Fix for a nil link issue that was happening in 6.7.6
Filename
BagSync.lua
BagSync.toc
diff --git a/BagSync.lua b/BagSync.lua
index bf3a4f3..fc76ba0 100644
--- a/BagSync.lua
+++ b/BagSync.lua
@@ -252,6 +252,8 @@ local function ToShortLink(link)
 	--at least this way it will always pull the first number after itemid: and before the second :
 	--it's not the best way to do this, but it's better then having to freaking modify a regex every so often.  Their latest change is due to Transmorgify.

+	if not link then return nil end
+
 	--ignore pet battle stuff for now till I can fix it :)
 	if string.find(link:lower(), "hbattlepet:") then
 		return nil
diff --git a/BagSync.toc b/BagSync.toc
index 5adbab4..b189853 100644
--- a/BagSync.toc
+++ b/BagSync.toc
@@ -2,7 +2,7 @@
 ## Title: BagSync
 ## Notes: BagSync tracks your characters items and displays it within tooltips.
 ## Author: Xruptor
-## Version: 6.7.6
+## Version: 6.7.7
 ## SavedVariables: BagSyncDB, BagSyncOpt, BagSyncGUILD_DB, BagSyncTOKEN_DB, BagSyncCRAFT_DB, BagSyncBLACKLIST_DB

 localization\localization.lua