View Single Post
04-02-12, 09:19 PM   #2
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Something like this should work:
Code:
local function apply(editBox)
	editBox:SetAttribute("chatType", "GUILD")
	editBox:SetAttribute("stickyType", "GUILD")
end

-- apply change to all existing chat frames
for i = 1, 10 do
	local editBox = _G["ChatFrame"..i.."EditBox"]
	if editBox then
		apply(editBox)
	end
end

-- apply change to all future chat frames when they are created
hooksecurefunc(ChatEdit_OnLoad, apply)
  Reply With Quote