Rejoin channels only if not currently in them fixed.
This commit is contained in:
parent
53ca5d2998
commit
b9c46370a6
1 changed files with 4 additions and 1 deletions
|
@ -29,7 +29,10 @@ function core:SlashCommand()
|
|||
end
|
||||
|
||||
function core:RejoinChannels(...)
|
||||
local currentChannels = { GetChannelList() };
|
||||
local currentChannels = {};
|
||||
for i = 1,select("#",GetChannelList()) do
|
||||
currentChannels[select(i,GetChannelList())] = true
|
||||
end
|
||||
|
||||
for channel,information in pairs(ChatSaverDB) do
|
||||
if(currentChannels[channel] == nil) then
|
||||
|
|
Loading…
Reference in a new issue