Download
(151Kb)
Download
Compatible with Retail, Classic & TBC
Updated: 05-02-24 08:11 PM
Pictures
File Info
Compatibility:
Cataclysm Classic (4.4.0)
Classic (1.15.0)
Guardians of the Dream (10.2.0)
Updated:05-02-24 08:11 PM
Created:06-11-09 12:49 AM
Downloads:5,152
Favorites:17
MD5:

TradeFilter  Updated less than 3 days ago!  Popular! (More than 5000 hits)

Version: v3.7.9
by: evonder [More]

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

TradeFilter does not only filter Trade Chat 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 a separate set of patterns for all other channels, or "base" channels. 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.

Black and White Lists
TradeFilter also has a configurable black and white list. Refer to the Flowchart for how friends, party, black, and white lists are processed according to your configuration options.

Configuration

Code:
/tf or /filter
Changes
ChangeLog Page

Supported Translations
Please help localize this project Here

TradeFilter3
v3.7.9 (2024-05-03)
Full Changelog Previous Releases
  • Bump TOC
    Disable BG filters
    Logic cleanup
    Remove old libs
    Case sensitivity no longer needed
    Fix frame creation and reuse
    Fix party and raid exemption
Archived Files (6)
File Name
Version
Size
Author
Date
v3.7.8
151kB
evonder
05-29-23 09:40 AM
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 07-14-09, 08:48 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 KyrosKrane
OK, I think I'm finally starting to understand how this works. I've taken your priority diagram from the description and turned it into a sort of pseudo-code. Tell me if this is correct, please.
  • If speaker is on friends list, display as normal and skip the rest of these steps.
  • If speaker is self (unless self-filtering is turned on), display as normal and skip the rest of these steps.
  • If message matches whitelist, display as normal and skip the rest of these steps.
  • If message matches blacklist, discard it (don't display anywhere) and skip the rest of these steps.
  • If message has been repeated, discard it (don't display anywhere) and skip the rest of these steps.
  • Choose one:
    • If message matches the filter, display as normal; OR
    • if message does not match the filter and the spam window option is enabled, display in the spam window; OR
    • if message does not match the filter and the spam window option is disabled, discard it (don't display anywhere).

Is that about correct?
Correct
Originally posted by KyrosKrane
What I'm hoping for is a little different. Here's what I'm looking for; differences in bold.
  • If speaker is on friends list, display as normal and skip the rest of these steps.
  • If speaker is self (unless self-filtering is turned on), display as normal and skip the rest of these steps.
  • If message matches whitelist, display as normal and skip the rest of these steps.
  • If message matches blacklist, display in the spam window and skip the rest of these steps.
  • If message has been repeated, discard it (don't display anywhere) and skip the rest of these steps.
  • Else, display the message as normal.

Is this possible with your addon?
Not ATM but I will put an option to allow messages that return a match of your blacklist patterns to be shown in the SPAM frame on the "To Do" list. You can empty your Trade/Base filter lists, essentially monitoring the enabled channels but not subjecting them to the filter function

EDIT:: I have decided against this; if you would like to see the blacklisted messages you can get the latest alpha build, which is usually bug free, and enable debugging.

Originally posted by KyrosKrane
On a related note, are the regular expressions used for the filter and white/blacklists interchangeable? Can I copy the expressions from, say, the blacklist into the filter window and the addon would parse them without error?
Yes they are interchangeable but you should know how Lua patterns beforehand
Last edited by evonder : 07-15-09 at 12:08 AM.
Report comment to moderator  
Reply With Quote
Unread 07-15-09, 01:02 PM  
Contiki
A Kobold Labourer
 
Contiki's Avatar
AddOn Author - Click to view AddOns

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

I've tested r144. Here's what I've got to say ;-)
  1. Translation
    • In the options menu under Repeat Filtration the tooltips for both Repeats and Time start with the untranslatable word "Usage". As in, "Usage: Filtere Zeichenketten, die x-mal innerhalb von y Sekunden im Chat erscheinen."

  2. Quirks/strange behavior
    • Black- and white-listed messages in my debug chat frame have all white spaces stripped from the text as in, "ulduarmyass" instead of "ulduar my ass". It would be neat if players could get white spaces at least visually, even if the add-on uses those stripped versions internally.

  3. Suggestions
    • Seeing the Matched reports in my debug chat frame (next to the Lua pattern that matched) is very useful. Could you add these hints for black- and white-listed messages, too?
    • When the add-on checks filters, the debug chat frame can become crowded. Could you add an option to disable the Checking for Match lines?
Greetings and all the best,

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

Forum posts: 2
File comments: 28
Uploads: 1
r147 Addresses the following:
Originally posted by recluse
Could we get an option to disable the 'so and so added/removed from exempt list' spam? It's not a bad feature or anything, but I have an addon which uses the friends list to determine corpse statuses, and it gets really spammy! Thanks
Friends list adding/removing messages will now only show if you have debugging enabled.

Originally posted by KyrosKrane
What I'm hoping for is a little different. Here's what I'm looking for; differences in bold.
  • If speaker is on friends list, display as normal and skip the rest of these steps.
  • If speaker is self (unless self-filtering is turned on), display as normal and skip the rest of these steps.
  • If message matches whitelist, display as normal and skip the rest of these steps.
  • If message matches blacklist, display in the spam window and skip the rest of these steps.
  • If message has been repeated, discard it (don't display anywhere) and skip the rest of these steps.
  • Else, display the message as normal.

Is this possible with your addon?
You can now output Blacklist matches to the SPAM ChatFrame, this is enabled in the Output Options in the configuration GUI.

Originally posted by Contiki
Greetings,

I've tested r144. Here's what I've got to say ;-)
  1. Translation
    • In the options menu under Repeat Filtration the tooltips for both Repeats and Time start with the untranslatable word "Usage". As in, "Usage: Filtere Zeichenketten, die x-mal innerhalb von y Sekunden im Chat erscheinen."

  2. Quirks/strange behavior
    • Black- and white-listed messages in my debug chat frame have all white spaces stripped from the text as in, "ulduarmyass" instead of "ulduar my ass". It would be neat if players could get white spaces at least visually, even if the add-on uses those stripped versions internally.

  3. Suggestions
    • Seeing the Matched reports in my debug chat frame (next to the Lua pattern that matched) is very useful. Could you add these hints for black- and white-listed messages, too?
    • When the add-on checks filters, the debug chat frame can become crowded. Could you add an option to disable the Checking for Match lines?
Greetings and all the best,

Contiki
1) "Usage:" is from the AceDBOptions library and is one of the few things that the addon localization doesn't affect.

2) Fixed

3a) Done

3b) The ability to now strip the "Checking for Match" while iterating the given pattern table is available, this is enabled in the Output Options in the configuration GUI.

Project Home
Last edited by evonder : 07-15-09 at 11:14 PM.
Report comment to moderator  
Reply With Quote
Unread 07-22-09, 05:16 PM  
Rolzroyce
A Murloc Raider

Forum posts: 4
File comments: 9
Uploads: 0
I am having a problem where the addon is letting about 40% of the messages thru, and filtering some messages that are not spam, such as "Did that just happen?" and "Where can I find [NPC Name]?"

I restored everything to defaults and still have the problem. Any advice?
Report comment to moderator  
Reply With Quote
Unread 07-22-09, 09:17 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 Rolzroyce
I am having a problem where the addon is letting about 40% of the messages thru, and filtering some messages that are not spam, such as "Did that just happen?" and "Where can I find [NPC Name]?"

I restored everything to defaults and still have the problem. Any advice?
Only messages that contain a match to your pattern list will be allowed to pass through the filter. "Did that just happen?" and "Where can I find [NPC Name]?" will never be allowed with the default filter pattern list.
__________________
Author: TradeFilter, CheckFearWard, Bloodsurge and more
Report comment to moderator  
Reply With Quote
Unread 07-23-09, 04:47 PM  
Recluse
A Cliff Giant
 
Recluse's Avatar
AddOn Author - Click to view AddOns

Forum posts: 70
File comments: 94
Uploads: 13
Thank you

Originally posted by evonder
Friends list adding/removing messages will now only show if you have debugging enabled.
Thanks
__________________
We'd be together, but only diamonds last forever...
Last edited by Recluse : 07-23-09 at 04:54 PM.
Report comment to moderator  
Reply With Quote
Unread 07-24-09, 07:01 AM  
GreyWolfSC
A Murloc Raider

Forum posts: 5
File comments: 83
Uploads: 0
Originally posted by evonder
Only messages that contain a match to your pattern list will be allowed to pass through the filter. "Did that just happen?" and "Where can I find [NPC Name]?" will never be allowed with the default filter pattern list.
Either I'm not understanding the addon or something's not working right. It filtered "lvl 80 druid?", plus at least 5 more messages that were definitely not spam, out of General chat while I was talking about a ganker that was hounding me last night.
Report comment to moderator  
Reply With Quote
Unread 07-24-09, 03:21 PM  
Contiki
A Kobold Labourer
 
Contiki's Avatar
AddOn Author - Click to view AddOns

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

I'm trying out the add-on EverTrade which transmits Trade channel messages from players in a Trade-enabled city to players outside of Trade-enabled cities. Pretty sweet if I'm in the middle of nowhere and still want to stay in touch with what the average Joe has to offer.

Due to the way EverTrade works, TradeFilter doesn't touch its messages. It'd be really sweet if TradeFilter (optionally?) checked EverTrade's messages, too. Do you think that'd be possible/sensible?

All the best,

Contiki
Report comment to moderator  
Reply With Quote
Unread 07-24-09, 06:04 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,

I'm trying out the add-on EverTrade which transmits Trade channel messages from players in a Trade-enabled city to players outside of Trade-enabled cities. Pretty sweet if I'm in the middle of nowhere and still want to stay in touch with what the average Joe has to offer.

Due to the way EverTrade works, TradeFilter doesn't touch its messages. It'd be really sweet if TradeFilter (optionally?) checked EverTrade's messages, too. Do you think that'd be possible/sensible?

All the best,

Contiki
I will take a look at it when the time permits.

EDIT:: Now to find someone to test it with :P
EDIT2:: Pretty sure special channels filtering is working fine, but I need a person in guild running the mod to make sure that hidden channel spam through the guild channel is being filtered properly.
__________________
Author: TradeFilter, CheckFearWard, Bloodsurge and more
Last edited by evonder : 07-25-09 at 01:42 AM.
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
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-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-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, 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-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
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.