From 8a65ac389ae8631283a33f67f4232fd382b86252 Mon Sep 17 00:00:00 2001 From: James Whitehead II Date: Sun, 20 May 2007 14:57:16 +0000 Subject: [PATCH] * Updated the logic for rank parsing. Should be more robust and work with other locales. --- Clique.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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" -- 1.7.9.5