From b9c46370a68c2554d6fcacba2141fe076818a0c0 Mon Sep 17 00:00:00 2001 From: atomaka Date: Fri, 27 May 2011 19:30:56 -0400 Subject: [PATCH] Rejoin channels only if not currently in them fixed. --- ChatSaver.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ChatSaver.lua b/ChatSaver.lua index 28a299b..bc52ae6 100644 --- a/ChatSaver.lua +++ b/ChatSaver.lua @@ -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