Add ChatSniffer module and update saved variables
This commit is contained in:
@@ -19,11 +19,13 @@ function shared.Sniffer.Init()
|
||||
end
|
||||
return
|
||||
end
|
||||
if smellThrottle[stinky] and GetTime() - smellThrottle[stinky] < Heimdall_Data.config.sniffer.throttleTime then
|
||||
local now = GetTime()
|
||||
local throttle = smellThrottle[stinky] or 0
|
||||
if now - throttle < Heimdall_Data.config.sniffer.throttle then
|
||||
if Heimdall_Data.config.sniffer.debug then print(string.format("%s: Throttled", ModuleName)) end
|
||||
return
|
||||
end
|
||||
smellThrottle[stinky] = GetTime()
|
||||
smellThrottle[stinky] = now
|
||||
|
||||
for _, channel in pairs(Heimdall_Data.config.sniffer.channels) do
|
||||
local locale = shared.GetLocaleForChannel(channel)
|
||||
|
||||
Reference in New Issue
Block a user