From 86a904b50226a8bd5f4cc8751a4a8821f6c1957e Mon Sep 17 00:00:00 2001 From: atomaka Date: Fri, 3 Jun 2011 05:53:45 -0400 Subject: [PATCH] Typo fixes in new functions: NOY FUNCTIONAL --- ChatSaver.lua | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/ChatSaver.lua b/ChatSaver.lua index 44fd3ab..8b0b73c 100644 --- a/ChatSaver.lua +++ b/ChatSaver.lua @@ -99,7 +99,7 @@ function core:GetChannelTable() end function core:GetChannelCategory(number) - for i = 1,GetNumDisplayChannels(),i do + for i = 1,GetNumDisplayChannels(),1 do _,_,channelNumber,_,_,category = GetChannelDisplayInfo(i); if(channelNumber == number) then @@ -117,11 +117,9 @@ function core:JoinChannel(msg) return; end - local index = GetChannelName(name); -- in game function does not handle "General" or "Trade" + number,channelName,category = core:GetChannelInfo(name); + print(number,channelName,category); - local _,_,_,_,_,_,category,_,_ = GetChannelDisplayInfo(index); - print(category); - if(category == CHANNEL_CATEGORY_CUSTOM) then ChatSaverDB[name] = {}; ChatSaverDB[name]['frames'] = {};