Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
21 lines (15 sloc) 699 Bytes
local filterstrings = {
"^Recount - (.*)$",
"%d+%. %S+%s*%d+ %([%d.]+, [%d.]+%%%)", -- Recount
--~ "^(%d+). (.*)$", -- Also Recount
"%d+%. - [%d.]+%%% %S+%s*%d+",
"%d+%.%s+[%w%s]+%s+[%d.]+ %([%d.]+%)", -- 10. Khal 2397.9 (5.8%)
-- "%d+%.%s+%S+%s+<%S+>%s+[%d.]+%s+%([%d.]+%)", -- 2. Bonehead <Demante> 129.9 (3.9%)
"%d+%.%s+%S+%s+[%d.]+", -- 10. Khal 2397.9
}
local function filter(self, event, msg)
for _,str in pairs(filterstrings) do if msg:match(str) then return true end end
end
for _,event in pairs{"CHAT_MSG_YELL", "CHAT_MSG_WHISPER", "CHAT_MSG_SAY", "CHAT_MSG_RAID", "CHAT_MSG_GUILD", "CHAT_MSG_OFFICER", "CHAT_MSG_PARTY"} do
ChatFrame_AddMessageEventFilter(event, filter)
end
You can’t perform that action at this time.