From 57200e591b19c0fe5fdc7370879b3ce0a0273d5f Mon Sep 17 00:00:00 2001 From: James Whitehead II Date: Sat, 14 Apr 2007 18:18:12 +0000 Subject: [PATCH] * Attempt to fix an issue with numeric macro indices --- Clique.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Clique.lua b/Clique.lua index f36fff0..d27913f 100644 --- a/Clique.lua +++ b/Clique.lua @@ -443,7 +443,7 @@ function Clique:SetAttribute(entry, frame) frame:SetAttribute(entry.modifier.."unit"..button, entry.arg4) elseif entry.type == "macro" then frame:SetAttribute(entry.modifier.."type"..button, entry.type) - if entry.arg1 and #strlen(entry.arg1) > 0 then + if entry.arg1 and type(entry.arg1) == "string" and entry.arg1:match("[^%s]") then frame:SetAttribute(entry.modifier.."macro"..button, entry.arg1) else local unit = SecureButton_GetModifiedUnit(frame, entry.modifier.."unit"..button) -- 1.7.9.5