- Code: Select all
if elapsed >= 20 and left_channels then
-- If you have other channels you want to automatically join
-- every time you log on, add them here like so:
-- JoinChannel("myOtherChannel");
JoinChannel("world");
ChatFrame_AddChannel(ChatFrame3, "world");
ChatFrame_RemoveChannel(ChatFrame1, "world");
is_in_channels = true;
elseif elapsed >= 15 and not left_channels then
-- Leaves the channels specified below before re-joining them.
LeaveChannelByName("world")
left_channels = true;
end
That's allow to join the world and set it in a custom chat frame !