Added missed variable scoping.

This commit is contained in:
Andrew Tomaka 2011-06-03 08:49:37 -04:00
parent 7d55d0ee93
commit 2bdea38132

View file

@ -64,7 +64,7 @@ end
function core:GetChannelCategory(number) function core:GetChannelCategory(number)
for i = 1,GetNumDisplayChannels(),1 do for i = 1,GetNumDisplayChannels(),1 do
_,_,_,channelNumber,_,_,category = GetChannelDisplayInfo(i); local _,_,_,channelNumber,_,_,category = GetChannelDisplayInfo(i);
if(channelNumber == number) then if(channelNumber == number) then
return category; return category;
@ -84,7 +84,6 @@ function core:RejoinChannels(...)
for channel,_ in pairs(ChatSaverDB) do for channel,_ in pairs(ChatSaverDB) do
table.insert(sortedChannels,channel); table.insert(sortedChannels,channel);
end end
table.sort(sortedChannels,function(a,b) return ChatSaverDB[a].index < ChatSaverDB[b].index end); table.sort(sortedChannels,function(a,b) return ChatSaverDB[a].index < ChatSaverDB[b].index end);
for _,channel in pairs(sortedChannels) do for _,channel in pairs(sortedChannels) do