Add option to echo to russian channel
This commit is contained in:
@@ -118,19 +118,21 @@ function shared.DeathReporter.Init()
|
||||
end
|
||||
subZone = shared.L.ru.zones[subZone] or subZone
|
||||
|
||||
---@type Message
|
||||
msg = {
|
||||
channel = "CHANNEL",
|
||||
data = Heimdall_Data.config.deathReporter.masterChannel .. "ru",
|
||||
message = string.format(shared.L.ru.killed,
|
||||
source,
|
||||
destination,
|
||||
spellName,
|
||||
string.format("%s (%s)", zone, subZone),
|
||||
zoneId,
|
||||
x * 100, y * 100)
|
||||
}
|
||||
table.insert(shared.messenger.queue, msg)
|
||||
if Heimdall_Data.config.echoToRussian then
|
||||
-- Russian message
|
||||
local ruMsg = {
|
||||
channel = "CHANNEL",
|
||||
data = Heimdall_Data.config.deathReporter.masterChannel .. "ru",
|
||||
message = string.format(shared.L.ru.killed,
|
||||
source,
|
||||
destination,
|
||||
spellName,
|
||||
string.format("%s (%s)", zone, subZone),
|
||||
zoneId,
|
||||
x * 100, y * 100)
|
||||
}
|
||||
table.insert(shared.messenger.queue, ruMsg)
|
||||
end
|
||||
end)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user