Disable alerts that have ttl=0
This commit is contained in:
@@ -245,8 +245,11 @@ function shared.MinimapTagger.Init()
|
|||||||
end
|
end
|
||||||
|
|
||||||
if string.find(msg, "^I see") then
|
if string.find(msg, "^I see") then
|
||||||
|
if Heimdall_Data.config.minimapTagger.tagTTL == 0 then
|
||||||
if Heimdall_Data.config.minimapTagger.debug then
|
if Heimdall_Data.config.minimapTagger.debug then
|
||||||
print(string.format("[%s] Found alert in message: %s", ModuleName, msg))
|
print(string.format("[%s] Tag TTL is 0, ignoring message: %s", ModuleName, msg))
|
||||||
|
end
|
||||||
|
return
|
||||||
end
|
end
|
||||||
local x, y = string.match(msg, "%((%d+%.%d+)%s*,%s*(%d+%.%d+)%)")
|
local x, y = string.match(msg, "%((%d+%.%d+)%s*,%s*(%d+%.%d+)%)")
|
||||||
if Heimdall_Data.config.minimapTagger.debug then
|
if Heimdall_Data.config.minimapTagger.debug then
|
||||||
@@ -257,6 +260,12 @@ function shared.MinimapTagger.Init()
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
if string.find(msg, "^I am in combat with") then
|
if string.find(msg, "^I am in combat with") then
|
||||||
|
if Heimdall_Data.config.minimapTagger.combatTTL == 0 then
|
||||||
|
if Heimdall_Data.config.minimapTagger.debug then
|
||||||
|
print(string.format("[%s] Combat TTL is 0, ignoring message: %s", ModuleName, msg))
|
||||||
|
end
|
||||||
|
return
|
||||||
|
end
|
||||||
if Heimdall_Data.config.minimapTagger.debug then
|
if Heimdall_Data.config.minimapTagger.debug then
|
||||||
print(string.format("[%s] Found combat alert in message: %s", ModuleName, msg))
|
print(string.format("[%s] Found combat alert in message: %s", ModuleName, msg))
|
||||||
end
|
end
|
||||||
@@ -269,6 +278,12 @@ function shared.MinimapTagger.Init()
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
if string.find(msg, " killed ") then
|
if string.find(msg, " killed ") then
|
||||||
|
if Heimdall_Data.config.minimapTagger.alertTTL == 0 then
|
||||||
|
if Heimdall_Data.config.minimapTagger.debug then
|
||||||
|
print(string.format("[%s] Alert TTL is 0, ignoring message: %s", ModuleName, msg))
|
||||||
|
end
|
||||||
|
return
|
||||||
|
end
|
||||||
if Heimdall_Data.config.minimapTagger.debug then
|
if Heimdall_Data.config.minimapTagger.debug then
|
||||||
print(string.format("[%s] Found death alert in message: %s", ModuleName, msg))
|
print(string.format("[%s] Found death alert in message: %s", ModuleName, msg))
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user