From 2bdea381327314ad11bf9f37474e0e4bab0b741d Mon Sep 17 00:00:00 2001 From: atomaka Date: Fri, 3 Jun 2011 08:49:37 -0400 Subject: [PATCH] Added missed variable scoping. --- ChatSaver.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ChatSaver.lua b/ChatSaver.lua index 36a4802..811debf 100644 --- a/ChatSaver.lua +++ b/ChatSaver.lua @@ -64,7 +64,7 @@ end function core:GetChannelCategory(number) for i = 1,GetNumDisplayChannels(),1 do - _,_,_,channelNumber,_,_,category = GetChannelDisplayInfo(i); + local _,_,_,channelNumber,_,_,category = GetChannelDisplayInfo(i); if(channelNumber == number) then return category; @@ -84,7 +84,6 @@ function core:RejoinChannels(...) for channel,_ in pairs(ChatSaverDB) do table.insert(sortedChannels,channel); end - table.sort(sortedChannels,function(a,b) return ChatSaverDB[a].index < ChatSaverDB[b].index end); for _,channel in pairs(sortedChannels) do