GetChannelTable fucntion to return a list of channels: NOT FUNCTIONAL
This commit is contained in:
parent
dcde240f24
commit
71036313e9
1 changed files with 21 additions and 0 deletions
|
@ -73,6 +73,27 @@ function core:SetupChatSaver(...)
|
|||
self:UnregisterEvent('CHAT_MSG_CHANNEL_NOTICE');
|
||||
end
|
||||
|
||||
function core:GetChannelInfo(id)
|
||||
--addon.lua:373
|
||||
--channelapi.lua:65
|
||||
--channelapi.lua:55
|
||||
local channelTable = core:GetChanneltable();
|
||||
end
|
||||
|
||||
function core:GetChannelTable()
|
||||
local channelList = { GetChannelList() };
|
||||
local channelTable = {};
|
||||
for i = 1,#channelList,2 do
|
||||
channelTable[channelList[i]] = channelList[i + 1];
|
||||
channelTable[channelList[i + 1]] = channelList[i];
|
||||
if(type(channelList[i + 1]) == 'string') then
|
||||
channelTable[channelList[i + 1]:lower()] = channelList[i];
|
||||
end
|
||||
end
|
||||
|
||||
return channelTable;
|
||||
end
|
||||
|
||||
function core:JoinChannel(msg)
|
||||
self.hooks[SlashCmdList].JOIN(msg);
|
||||
|
||||
|
|
Loading…
Reference in a new issue