|
|
|
@ -589,8 +589,14 @@ end
|
|
|
|
|
|
|
|
|
|
function sendMessage(message, tab)
|
|
|
|
|
local tab = tab or getCurrentTab()
|
|
|
|
|
if not tab then return end
|
|
|
|
|
|
|
|
|
|
if tab == getRuleViolationsTab() then return end
|
|
|
|
|
-- when talking on server log, the message goes to default channel
|
|
|
|
|
local name = tab:getText()
|
|
|
|
|
if tab == serverTab or tab == getRuleViolationsTab() then
|
|
|
|
|
tab = defaultTab
|
|
|
|
|
name = defaultTab:getText()
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
-- handling chat commands
|
|
|
|
|
local originalMessage = message
|
|
|
|
@ -630,13 +636,6 @@ function sendMessage(message, tab)
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
-- when talking on server log, the message goes to default channel
|
|
|
|
|
local name = tab:getText()
|
|
|
|
|
if tab == serverTab then
|
|
|
|
|
tab = defaultTab
|
|
|
|
|
name = defaultTab:getText()
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
local speaktypedesc
|
|
|
|
|
if (tab.channelId or tab == defaultTab) and not chatCommandPrivateReady then
|
|
|
|
|
if tab == defaultTab then
|
|
|
|
|