Added missed variable scoping.
This commit is contained in:
parent
7d55d0ee93
commit
2bdea38132
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue