Quantcast

* tostring() on entry.arg2

James Whitehead II [04-14-07 - 18:24]
* tostring() on entry.arg2
Filename
Clique.lua
diff --git a/Clique.lua b/Clique.lua
index 88d2b39..1914922 100644
--- a/Clique.lua
+++ b/Clique.lua
@@ -447,7 +447,7 @@ function Clique:SetAttribute(entry, frame)
 			frame:SetAttribute(entry.modifier.."macro"..button, entry.arg1)
 		else
 			local unit = SecureButton_GetModifiedUnit(frame, entry.modifier.."unit"..button)
-			local macro = entry.arg2
+			local macro = tostring(entry.arg2)
 			if unit and macro then
 				macro = macro:gsub("target%s*=%s*clique", "target="..unit)
 			end