Blacklist \'roll\' as a keyword to ensure no epgp bid detection fails when RL/ML is asking for random roll
This commit is contained in:
+8
-1
@@ -777,6 +777,9 @@ lootCall.os = {
|
||||
"^(os)[%s%p%c]+.+",".+[%s%p%c]+(os)$",".+[%s%p%c]+(os)[%s%p%c]+.*",".*[%s%p%c]+(os)[%s%p%c]+.+",
|
||||
".+(offspec).*",".*(offspec).+"
|
||||
}
|
||||
lootCall.bs = { -- blacklist
|
||||
"^(roll)[%s%p%c]+.+",".+[%s%p%c]+(roll)$",".*[%s%p%c]+(roll)[%s%p%c]+.*"
|
||||
}
|
||||
function sepgp:captureLootCall(text, sender)
|
||||
if not (IsRaidLeader() or self:lootMaster()) then return end
|
||||
if not sender == playerName then return end
|
||||
@@ -784,7 +787,11 @@ function sepgp:captureLootCall(text, sender)
|
||||
local linkstriptext, count = string.gsub(text,"|c%x+|H[eimt:%d]+|h%[[%w%s',%-]+%]|h|r"," ; ")
|
||||
if count > 1 then return end
|
||||
local lowtext = string.lower(linkstriptext)
|
||||
local whisperkw_found, mskw_found, oskw_found, link_found
|
||||
local whisperkw_found, mskw_found, oskw_found, link_found, blacklist_found
|
||||
for _,f in ipairs(lootCall.bs) do
|
||||
blacklist_found = string.find(lowtext,f)
|
||||
if (blacklist_found) then return end
|
||||
end
|
||||
local _, itemLink, itemColor, itemString, itemName
|
||||
for _,f in ipairs(lootCall.whisp) do
|
||||
whisperkw_found = string.find(lowtext,f)
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@
|
||||
## Notes: Effort Points/Gear Points Loot System
|
||||
## Author: Roadblock
|
||||
## X-Credits: shooty for original version
|
||||
## Version: 2.22
|
||||
## Version: 2.23
|
||||
## OptionalDeps: Ace2
|
||||
## SavedVariables: sepgp_saychannel,sepgp_groupbyclass,sepgp_raidonly,sepgp_decay,sepgp_reservechannel,sepgp_main,sepgp_progress,sepgp_discount
|
||||
## SavedVariablesPerCharacter: sepgp_log
|
||||
|
||||
Reference in New Issue
Block a user