1
0
Fork 0

Added missed variable scoping.

This commit is contained in:
Andrew Tomaka 2011-06-03 08:49:37 -04:00
parent 7d55d0ee93
commit 2bdea38132
1 changed files with 1 additions and 2 deletions

View File

@ -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