Quantcast

* Updated the logic for rank parsing. Should be more robust and work with other locales.

James Whitehead II [05-20-07 - 14:57]
* Updated the logic for rank parsing.  Should be more robust and work with other locales.
Filename
Clique.lua
diff --git a/Clique.lua b/Clique.lua
index 7180019..99a5867 100644
--- a/Clique.lua
+++ b/Clique.lua
@@ -172,8 +172,8 @@ function Clique:SpellBookButtonPressed(frame, button)
 		StaticPopup_Show("CLIQUE_PASSIVE_SKILL")
 		return
     else
-		rank = select(3, string.find(rank, L.RANK_PATTERN))
-		if rank then rank = tonumber(rank) end
+		local num = rank:match("(%d+)") or ""
+		rank = tonumber(num)
     end

     local type = "spell"