for A,r in pairs(initData.Channels)do if r[1]==ChatSettings.GeneralChannelName then HandleChannelJoined(r[1],r[2],r[3],r[4],true,false)end end for A,r in pairs(initData.Channels)do if r[1]~=ChatSettings.GeneralChannelName then HandleChannelJoined(r[1],r[2],r[3],r[4],true,false)end end return moduleApiTable
-- Handle joining general channel first.
for i, channelData in pairs(initData.Channels) do
	if channelData[1] == ChatSettings.GeneralChannelName then
		HandleChannelJoined(channelData[1], channelData[2], channelData[3], channelData[4], true, false)
	end
end

for i, channelData in pairs(initData.Channels) do
	if channelData[1] ~= ChatSettings.GeneralChannelName then
		HandleChannelJoined(channelData[1], channelData[2], channelData[3], channelData[4], true, false)
	end
end

return moduleApiTable
