Fix naming in sniffer
This commit is contained in:
@@ -30,25 +30,21 @@ function shared.Sniffer.Init()
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
smellThrottle[stinky] = GetTime()
|
smellThrottle[stinky] = GetTime()
|
||||||
|
|
||||||
|
for _, channel in pairs(Heimdall_Data.config.sniffer.channels) do
|
||||||
|
local locale = shared.GetLocaleForChannel(channel)
|
||||||
|
local text = string.format(shared._L("snifferStinky", locale), stinky)
|
||||||
|
---@type Message
|
||||||
local msg = {
|
local msg = {
|
||||||
channel = "C",
|
channel = "C",
|
||||||
data = Heimdall_Data.config.deathReporter.notifyChannel,
|
data = channel,
|
||||||
message = string.format(shared.L.en.snifferStinky, stinky),
|
message = text,
|
||||||
}
|
}
|
||||||
if Heimdall_Data.config.sniffer.debug then
|
if Heimdall_Data.config.sniffer.debug then
|
||||||
print(string.format("%s: Inserting message into queue", ModuleName))
|
print(string.format("[%s] Queuing sniffer message", ModuleName))
|
||||||
shared.dumpTable(msg)
|
shared.dumpTable(msg)
|
||||||
end
|
end
|
||||||
table.insert(shared.messenger.queue, msg)
|
table.insert(shared.messenger.queue, msg)
|
||||||
|
|
||||||
if Heimdall_Data.config.echoToRussian then
|
|
||||||
-- Russian message
|
|
||||||
local ruMsg = {
|
|
||||||
channel = "C",
|
|
||||||
data = Heimdall_Data.config.deathReporter.notifyChannel .. "ru",
|
|
||||||
message = string.format(shared.L.ru.snifferStinky, stinky),
|
|
||||||
}
|
|
||||||
table.insert(shared.messenger.queue, ruMsg)
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user