I want to answer something but the first lines stuck my mind in a loop.
Code:
local addon_folder = "PriceAnswer"
local title = "Title"
if GetLocale() ~= "enUS" then
title = title .. "-" .. GetLocale()
end
local addon_name = GetAddOnMetadata(addon_folder, title) or GetAddOnMetadata(addon_folder, "Title")
What is this thing?
Why are you hardcoding your addon name when you can do
Code:
local addonName, addonTable = ...
Anyway .. my guess would be you're trying to send control codes through SendChatMessage which will obviously not work.
Local print has no issue with those.