Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- L='Common'
- if(select(1,UnitFactionGroup('player')))=='Horde'then
- L='Orcish'end
- for _,c in pairs({
- 'SAY',
- 'YELL',
- 'CHANNEL'
- })do
- ChatFrame_AddMessageEventFilter('CHAT_MSG_'..c,function(_,_,m,_,l)
- if L~=l then
- return true
- else
- m=string.lower(m):gsub('[%c%d%p%s%z]','')
- for _,w in pairs({
- 'coins',
- 'wts',
- 'sell',
- 'sale',
- 'trad',
- 'web',
- 'site',
- 'warmane',
- 'wm',
- 'guil',
- 'gild',
- 'pve',
- 'pvp',
- 'dbm',
- 'dkp',
- 'epgp',
- 'recr',
- 'recl',
- 'xlod',
- 'raidtime',
- 'progres',
- 'progg',
- 'набор',
- 'twitch',
- 'youtu',
- 'baidu'
- })do
- if m:find(w)then
- return true end
- end
- end
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement