Do not save chat frame information for zone channels
This commit is contained in:
parent
74958b0366
commit
521cd01d7c
1 changed files with 5 additions and 2 deletions
|
@ -43,10 +43,12 @@ function core:RejoinChannels(event,message,...)
|
|||
if(found == false) then
|
||||
JoinPermanentChannel(channel);
|
||||
for index,shown in pairs(ChatSaverDB[channel].frames) do
|
||||
if(shown) then
|
||||
_G['ChatFrame'..index].channelList[table.getn(_G['ChatFrame'..index].channelList) + 1] = channel;
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
function core:JoinChannel(msg)
|
||||
|
@ -66,10 +68,11 @@ function core:LeaveChannel(msg)
|
|||
local number = gsub(msg, "%s*([^%s]+).*", "%1");
|
||||
local _,name = GetChannelName(number);
|
||||
|
||||
--ChatSaverDB[name] = nil;
|
||||
ChatSaverDB[name] = nil;
|
||||
end
|
||||
|
||||
function core:ToggleChatChannel(checked,channel)
|
||||
if(ChatSaverDB[channel] == nil) then return end;
|
||||
if(checked) then
|
||||
ChatSaverDB[channel]['frames'][FCF_GetCurrentChatFrameID()] = true;
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue