Download
(151Kb)
Download
Compatible with Retail, Classic & TBC
Updated: 05-29-23 09:40 AM
Pictures
File Info
Compatibility:
Embers of Neltharion (10.1.0)
WOTLK Patch (3.4.1)
Classic (1.14.3)
Updated:05-29-23 09:40 AM
Created:06-11-09 12:49 AM
Downloads:5,147
Favorites:17
MD5:

TradeFilter  Popular! (More than 5000 hits)

Version: v3.7.8
by: evonder [More]

A Simple World of Warcraft Spam Filter!
Please help localize this project Here

TradeFilter does not only filter trade but has the ability to filter General, LookingforGroup, Say and Yell channels all which are configurable through the blizzard options panel.

Channel Filters
TradeFilter has a set of patterns for trade channel and separate set of patterns for all other channels, or "base" channels as we will call them. This allows the user to define what patterns may be good for trade but not other channels and vise versa. The user also has the ability to add patterns of their own to be matched against for both trade and "base" channel filters.

Default Channel Filters

Black and White Lists
TradeFilter also has a built in Black and White list. Refer to the flowchart for how Black and White lists are checked.

Default Black/White Lists

Configuration

Code:
/tf or /filter
To Do
Nothing planned

ChangeLog
ChangeLog Page

Supported Translations
Please help localize this project Here

TradeFilter3
v3.7.8 (2023-05-25)
Full Changelog Previous Releases
  • Changes for Battleground filtering - drycoded
  • Fix debug output channel names
Archived Files (5)
File Name
Version
Size
Author
Date
v3.7.7
151kB
evonder
05-16-23 06:46 PM
v3.7.6
150kB
evonder
04-30-23 02:10 PM
v3.7.5
148kB
evonder
04-23-23 01:41 AM
v3.7.4
148kB
evonder
03-05-23 04:46 AM
v3.7.1
149kB
evonder
02-26-23 02:56 AM


Post A Reply Comment Options
Unread 08-07-09, 09:27 PM  
evonder
A Defias Bandit
 
evonder's Avatar
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 28
Uploads: 1
Re: Suggestions

Originally posted by thantik
Could we have seperate white/black lists per major channel? I'd just like a bit better control over what's let through and what's not.

Also...the 'in bed' filter...currently blacklists anyone who links any gem with "inscribed" listed in the name. Might wanna redo the regex to be a little more specific by default.

Also - if you were to make seperate black/white lists, some little pre-set regex list to be able to add/remove to each black/white list would make setting it up really easy.

The defaults are amazing right now otherwise, just some minor quirks and I'm a control freak.
I have a feeling that having a configurable whitelist per-channel would make the addon far to convoluted and make the average user confused. The blacklist actually wasn't blocking the [Inscribed ...] item links but a bug that I found while adding a new option, which will do what Contiki requested earlier but I failed to understand. I think I understand what you are saying about the pre-sets though I don't think really see the use of it if we only have one list, what type of situation would call for changing pre-sets?

Updates: Alpha r167
- Added option whitelist bypass blacklist
- Added simple duel spam block
- Fix repeat filter and blacklist not actually being off
__________________
Author: TradeFilter, CheckFearWard, Bloodsurge and more
Report comment to moderator  
Reply With Quote
Unread 08-06-09, 12:46 AM  
thantik
A Kobold Labourer

Forum posts: 0
File comments: 12
Uploads: 0
Suggestions

Could we have seperate white/black lists per major channel? I'd just like a bit better control over what's let through and what's not.

Also...the 'in bed' filter...currently blacklists anyone who links any gem with "inscribed" listed in the name. Might wanna redo the regex to be a little more specific by default.

Also - if you were to make seperate black/white lists, some little pre-set regex list to be able to add/remove to each black/white list would make setting it up really easy.

The defaults are amazing right now otherwise, just some minor quirks and I'm a control freak.
Report comment to moderator  
Reply With Quote
Unread 08-01-09, 06:55 AM  
Contiki
A Kobold Labourer
 
Contiki's Avatar
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 72
Uploads: 2
Hi,

I've had a chance to test special channel filtering and it seems to work fine. If I've interpreted TradeFilter's bevahior correctly, however, the black list does not (yet) apply to special channels and the hidden guild add-on channel. If the black list is used for special channels, too, I must've set something incorrectly. I couldn't find any suspicios options though. In case this behavior is intended, could you modify TradeFilter so that special channels don't bypass the black list anymore?

While I was testing EverTrade with a guildie I missed the appropriate output in the SPAM and DEBUG chat frames. In case EverTrade messages indeed aren't displayed in those chat frames yet, could you change TradeFilter so that those messages are displayed there?

The bottom line is that special channels support is already working great. Makes the combination of EverTrade (and others) and TradeFilter a lot nicer than with former TradeFilter versions.

As for the sorting mechanism, it's way better than before. Now the sorting is predictable since it's always alphabetically from a to z. If possible, a next step in sorting greatness might be to actually save the player's sorting. That way players who prefer to group their filter and black list entries by context can retain their custom sorting, too. As in "here's everything about dungeons", "here's everything about obscenities" and "here's the valid profession stuff".

Keep it up! ;-)

All the best
Report comment to moderator  
Reply With Quote
Unread 07-29-09, 10:35 PM  
evonder
A Defias Bandit
 
evonder's Avatar
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 28
Uploads: 1
Originally posted by Contiki
This is an actual issue. I think. When I hit the Accept button underneath each of the filter input fields like Trade filter, Black list and so on, the fields' entries are randomly mixed.
Ok give this on a shot =) r160

EDIT:: little fix - r160 should keep list sorting constant
__________________
Author: TradeFilter, CheckFearWard, Bloodsurge and more
Last edited by evonder : 07-30-09 at 12:00 AM.
Report comment to moderator  
Reply With Quote
Unread 07-29-09, 06:47 PM  
evonder
A Defias Bandit
 
evonder's Avatar
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 28
Uploads: 1
Originally posted by Contiki
I've added German translations for the four new strings. Looks like the key RPTBYPASSD has a mistake, namely "Allow strings that match your a pattern in your whitelist to bypass the repeat filter." Nothing else to bitch and moan about though ;-)
aghh yes, it is now fixed. I also added "[Experimental]" to keys GAC and GACD
__________________
Author: TradeFilter, CheckFearWard, Bloodsurge and more
Report comment to moderator  
Reply With Quote
Unread 07-29-09, 07:50 AM  
Contiki
A Kobold Labourer
 
Contiki's Avatar
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 72
Uploads: 2
I've added German translations for the four new strings. Looks like the key RPTBYPASSD has a mistake, namely "Allow strings that match your a pattern in your whitelist to bypass the repeat filter." Nothing else to bitch and moan about though ;-)
Last edited by Contiki : 07-29-09 at 07:50 AM.
Report comment to moderator  
Reply With Quote
Unread 07-28-09, 01:03 AM  
Contiki
A Kobold Labourer
 
Contiki's Avatar
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 72
Uploads: 2
Hi,

see, now I get it ;-) Now that I know it's because of the Ace localization system it's all good. I didn't have that in mind when thinking about the possible advantages of table dictionaries over table arrays. As for the duplicate strings, they're no big deal. I wanted to make sure this wasn't a mistake or an oversight.
Report comment to moderator  
Reply With Quote
Unread 07-28-09, 12:31 AM  
evonder
A Defias Bandit
 
evonder's Avatar
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 28
Uploads: 1
Contiki, the only reason for the use of dictionary tables is to take advantage of the Ace localisation system which doesn't allow for standard array tables. As far as the duplicate name they are different namespaces plus its only one phrase thats a duplicate and I will get the TOC one fixed as soon as I can get this dang thing to commit to the SVN :P
__________________
Author: TradeFilter, CheckFearWard, Bloodsurge and more
Report comment to moderator  
Reply With Quote
Unread 07-27-09, 09:20 AM  
Contiki
A Kobold Labourer
 
Contiki's Avatar
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 72
Uploads: 2
Hi,

I don't quite get it with arrays and dictionaries. I've read the page you linked and the way I understand it you could declare your tables as arrays instead of dictionaries. That'd allow you to read from them with the ipairs() function instead of the pairs() function. You would then get the properly ordered array contents; ordered the same way they were last saved.

Like so:
Code:
array={"enchant:%d+[^%a%d]", "item:%d+[^%a%d]", "spell:%d+[^%a%d]", "trade:%d+[^%a%d]"}
for i,v in ipairs(array) do print(i,v) end
| 1 enchant:%d+[^%a%d]
| 2 item:%d+[^%a%d]
| 3 spell:%d+[^%a%d]
| 4 trade:%d+[^%a%d]
Or did I get that part wrong and table arrays are only possible with numbers and if you wanna save arbitrary strings you have to use table dictionaries? I mean I understand now that table dictionaries are output in a random order in Lua. Howevr, I don't get why dictionaries make more sense than arrays for TradeFilter's purposes.

Don't get me wrong here. This isn't actually an issue. I've been living with this behavior ever since and it won't impact me negatively if it stays this way ;-) It's more of a curiosity thing now that I know why the input fields get reordered every time I hit the Accept button.

All the best,

Contiki

//Edit: just realized on the localization page that you've changed the Notes key to "Not just any old filter". I've changed the German translation accordingly. However, only recently you've added the key NJAOF. Both are identical now. Wouldn't it be easier to maintain if you used just one key instead of two?
Last edited by Contiki : 07-27-09 at 12:44 PM.
Report comment to moderator  
Reply With Quote
Unread 07-27-09, 12:05 AM  
evonder
A Defias Bandit
 
evonder's Avatar
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 28
Uploads: 1
Originally posted by Contiki
Nope, not yet.

On a side note, I was just looking through a text file named tradefilter.txt I had on my desktop. Was wondering what was in there and lo and behold, during the last weeks I had jotted down suggestions and strange/unwanted behavior in TradeFilter I had totally forgotten about. So here goes.
  • A while ago you changed TradeFilter's slogan from "Filter the shit outta Trade channel!" to "Not just any old filter!" Initially only on the WowAce homepage, later here on wowinterface, too. I like that slogan better than the former one and was wondering what you'd think about adding it to the TOC file, too. So for consistency's sake, what do you think about adding "Not just any old filter!" to the TOC file, too?
  • This is an actual issue. I think. When I hit the Accept button underneath each of the filter input fields like Trade filter, Black list and so on, the fields' entries are randomly mixed. Consider me entering these terms into the filter list:
    • one
      two
      three
      four
      five
    Now I hit the Accept button an bam, the list looks like this:
    • three
      five
      one
      four
      two
    I've learned to live with this bevahior and am keeping a copy of the properly ordered filter terms separate. However, wouldn't it be cool if the add-on didn't reorder the list? That way players woudn't need to keep a separate copy of their filter terms and could instead change them in the input fields ;-) By the way, when I repeatedly hit Accept without actually changing the filter terms the lists get reordered repeatedly, too. I have to admit that looks kinda funny. *wonder what's up at the top the next time I hit accept*
That's it, that's the two things I had in my text file. Going to delete it now that I've let you know.

As for helping out with feedback, reports, translations 'n' stuff, you're welcome!

All the best,

Contiki
1) Localisation for Title has been changed, forgot all about that one
2) This is because the tables are dictionary style and as such have to use pairs to iterate over the tables, the caveat of pairs is that it does not return in a predetermined order. The reason for the table reorders itself every time you hit the accept button is the way that the table is wiped and repopulated with the given values that you supply...hence pairs iterates over it again to return you the values and poof reordered again :P
__________________
Author: TradeFilter, CheckFearWard, Bloodsurge and more
Report comment to moderator  
Reply With Quote
Unread 07-26-09, 11:49 PM  
Contiki
A Kobold Labourer
 
Contiki's Avatar
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 72
Uploads: 2
Originally posted by evonder
Btw did you get a chance to see if the "Special Channel" or AddOn channel was being filtered properly?
Nope, not yet.

On a side note, I was just looking through a text file named tradefilter.txt I had on my desktop. Was wondering what was in there and lo and behold, during the last weeks I had jotted down suggestions and strange/unwanted behavior in TradeFilter I had totally forgotten about. So here goes.
  • A while ago you changed TradeFilter's slogan from "Filter the shit outta Trade channel!" to "Not just any old filter!" Initially only on the WowAce homepage, later here on wowinterface, too. I like that slogan better than the former one and was wondering what you'd think about adding it to the TOC file, too. So for consistency's sake, what do you think about adding "Not just any old filter!" to the TOC file, too?
  • This is an actual issue. I think. When I hit the Accept button underneath each of the filter input fields like Trade filter, Black list and so on, the fields' entries are randomly mixed. Consider me entering these terms into the filter list:
    • one
      two
      three
      four
      five
    Now I hit the Accept button an bam, the list looks like this:
    • three
      five
      one
      four
      two
    I've learned to live with this bevahior and am keeping a copy of the properly ordered filter terms separate. However, wouldn't it be cool if the add-on didn't reorder the list? That way players woudn't need to keep a separate copy of their filter terms and could instead change them in the input fields ;-) By the way, when I repeatedly hit Accept without actually changing the filter terms the lists get reordered repeatedly, too. I have to admit that looks kinda funny. *wonder what's up at the top the next time I hit accept*
That's it, that's the two things I had in my text file. Going to delete it now that I've let you know.

As for helping out with feedback, reports, translations 'n' stuff, you're welcome!

All the best,

Contiki
Report comment to moderator  
Reply With Quote
Unread 07-26-09, 11:00 PM  
evonder
A Defias Bandit
 
evonder's Avatar
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 28
Uploads: 1
Originally posted by Contiki
Hi,

**Snip**

The white list optionally bypassing the black would be neat.

All the best,
Contiki
I will add that to the "To Do" list.

Originally posted by Contiki

//Edit: Added translations for the one modified and one new string.
Thank you sir, you have been a great help not only with translations but with such well thought out descriptions of problems or possible enhancements.

EDIT:: Btw did you get a chance to see if the "Special Channel" or AddOn channel was being filtered properly?
__________________
Author: TradeFilter, CheckFearWard, Bloodsurge and more
Last edited by evonder : 07-26-09 at 11:01 PM.
Report comment to moderator  
Reply With Quote
Unread 07-26-09, 10:30 PM  
Contiki
A Kobold Labourer
 
Contiki's Avatar
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 72
Uploads: 2
Hi,

I see where you're coming from and especially in case of these anal this-and-this item links it makes sense. However, at lesat on my server this anal meme thingy isn't an issue.

I'm using TradeFilter to get the actual Trade channel back; the way I think it was intended. My filter list contains all the good and valid stuff that usually happens in Trade: item links, profession links and whatnot. So that's allowed. Since at least on my realm some players like to use Trade as a substitute for LFG I've put all the LFG-related stuff - among other terms - on the black list: "naxx", "ulduar", "druid", "tank" and whatnot. By now both lists work well enough to come to the right decision 98% of the time. Roughly 2% of the valid Trade stuff get's lost and roughly 2% of the non-Trade stuff shows up in Trade. That's already great and I'm further fine-tuning the lists.

One issue I see is with items such as the [Relic of Ulduar]. I can modify the black list so it does trigger with "ulduar[^%]]", meaning with any "ulduar" followed by something else than the closing brackets ("]") of the item link. That way "lf tank for ulduar 10-man" gets blacklisted while "looking for 400 [Relic of Ulduar]" passes through. Problem is (that's where part of the missing 2% come from) when players ask for relics without an item link. Then there are no brackets to check for and the very valid Trade-related question for them gets thrown out. There are quite a few more items of this kind. [Hunter's Scout of the Bandit] comes to mind which could easily be cought by the "hunter" black list entry unless players provide the item link. The list goes on quite a bit, even though these make up a minority of Trade messages.

What I'm thinking about is to allow players to "free" the white list from black list checking. Like an option "Allow white list to bypass black list". I'm aware that this option may not be the right thing for all players. There's, however, the benefit of further customizing one's lists. The white list could take the most common mistakable item names and allow them to show up in Trade.

Another benefit comes to mind. The white list could allow the links for enchant:%d+[^%a%d], item:%d+[^%a%d], spell:%d+[^%a%d] and trade:%d+[^%a%d] to pass through. That way "wts a tank's dream [Enchant Weapon - Blade Ward]" shows up in Trade where it otherwise wouldn't due to the "tank" black list entry.

On the one hand, at least in my situation an option to "Allow white list to bypass black list" would "only" add another 1% to the 98% success rate. But then, its even closer to the perfect Trade channel. Plus, when players already have a white list, and when players already customize TradeFilter, it makes sense to give them such an option, too.

Oh and I don't see any tangible benefit in such an option for the repeat filter either. As in "Allow white list to bypass repeat filter". That wouldn't make sense. Allowing that would increase clutter in Trade. If a message is white-listed and it does not get thrown out by the black list (anymore), it will show up in Trade. No need for it to show up every ten seconds.

The white list optionally bypassing the black would be neat.

All the best,

Contiki

//Edit: Added translations for the one modified and one new string.
Last edited by Contiki : 07-26-09 at 10:50 PM.
Report comment to moderator  
Reply With Quote
Unread 07-25-09, 07:42 PM  
evonder
A Defias Bandit
 
evonder's Avatar
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 28
Uploads: 1
Originally posted by Contiki
Greetings,

thanks very much for adding this feature to TradeFilter! I've translated the new strings to German and downloaded r153. I'm going to test it with a guildie who's also using EverTrade and provide proper feedback as soon as I can.
I hope that the Guild AddOn message channel is filtered properly, without having someone to test with I am kinda shooting in the dark. Using the "Global" channel in EverTrade in conjunction with TradeFilter's "Special Channel" list should work just fine.

Originally posted by Contiki

As for the changes during the last revisions, I didn't notice any bugs or strange/unwanted behavior despite me monitoring the add-on's activity more or less closely. One thing I did notice, however, is in the filter priorities diagram. If I remember correctly the white list's purpose was to always allow certain messages. Once the white list triggered the message was shown no matter what. However, the diagram says that white-listed messages can still be discarded if they match something from the black list, too. Is that intended?

All the best,

Contiki
It is intended as I believe that even though it passes our white list it still should be at the scrutiny of our black list and our repeat filter, e.g. "Anal [ITEM LINK]" or just plain repeating the same advert that passes our white list a million times without being blocked.
__________________
Author: TradeFilter, CheckFearWard, Bloodsurge and more
Report comment to moderator  
Reply With Quote
Unread 07-25-09, 06:52 PM  
Contiki
A Kobold Labourer
 
Contiki's Avatar
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 72
Uploads: 2
Greetings,

thanks very much for adding this feature to TradeFilter! I've translated the new strings to German and downloaded r153. I'm going to test it with a guildie who's also using EverTrade and provide proper feedback as soon as I can.

In the localizations' Activity Log you see I've changed one of the strings' translation temporarily to "Test" and back to its correct translation. I'm using Firefox here and am seeing a glitch where the localization text boxes are shown twice. The upper text box doesn't actually work. Though it took quite some time for me track that down as the reason why I couldn't translate any string. I've found the respective bug report and read there that the second box actually works. Had to verify that for myself hence the temporary "Test" and its change back to the right translation.

As for the changes during the last revisions, I didn't notice any bugs or strange/unwanted behavior despite me monitoring the add-on's activity more or less closely. One thing I did notice, however, is in the filter priorities diagram. If I remember correctly the white list's purpose was to always allow certain messages. Once the white list triggered the message was shown no matter what. However, the diagram says that white-listed messages can still be discarded if they match something from the black list, too. Is that intended?

All the best,

Contiki
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump:

Support AddOn Development!

You have just downloaded by the author . If you like this AddOn why not consider supporting the author? This author has set up a donation account. Donations ensure that authors can continue to develop useful tools for everyone.