Originally Posted by Kanegasi
Lua Code:
ChatFrame_AddMessageEventFilter("CHAT_MSG_BG_SYSTEM_ALLIANCE",function(_,_,msg,...) msg=msg:gsub(" If left unchallenged, the Alliance will control it in 1 minute!","") return nil,msg,... end)
|
Thank you very much for answering, if it works and excuse my ignorance, how can I make a list to filter several messages? I did something like that but it doesn't work
Lua Code:
ChatFrame_AddMessageEventFilter("CHAT_MSG_BG_SYSTEM_ALLIANCE",function(_,_,msg,...)
msg=msg:gsub(" If left unchallenged, the Alliance will control it in 1 minute!"," control it in 1 minute!")
msg=msg:gsub("The Horde Flag was picked up by ","The Horde Flag was captured by ")
return nil,msg,...
end)