else |
if tab.name and tab.name ~= "" then |
local editBox = ChatEdit_ChooseBoxForSend() |
editBox:SetAttribute("chatType", "WHISPER") |
editBox:SetAttribute("tellTarget", tab.name) |
ChatEdit_UpdateHeader(editBox) |
if editBox ~= ChatEdit_GetActiveWindow() then |
ChatFrame_OpenChat("") |
local lastTell, lastTellType = ChatEdit_GetLastTellTarget(); |
if lastTell then |
editBox:SetAttribute("chatType", lastTellType) |
editBox:SetAttribute("tellTarget", tab.name) |
ChatEdit_UpdateHeader(editBox) |
if editBox ~= ChatEdit_GetActiveWindow() then |
ChatFrame_OpenChat("") |
end |
end |
end |
end |