Download
(1Kb)
Download
Updated: 04-28-09 05:17 PM
Pictures
File Info
Updated:04-28-09 05:17 PM
Created:04-26-09 04:13 PM
Downloads:3,104
Favorites:13
MD5:

Talent Spec Spam Filter

Version: 1.2
by: sweede [More]

don't you hate it when you change your active talent spec only to be spammed by unlearning and learning all of your skills over and over ?

Well, this gets rid of all that spam !

Based off of Fubar_DualSpec, but without Ace, FuBar or any of that other junk Uses a whopping 5kib of memory !

-- Fixed Error when logging in

-- Fixed the filter function to work with other addons that create filters
Optional Files (0)


Post A Reply Comment Options
Unread 02-13-11, 12:03 PM  
Mortilus
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 12
File comments: 207
Uploads: 7
hmm, crap. I didn't realize this addon existed so I wrote my own, with exactly the same name ...

oh well. This one hasn't been updated in a long while. Here's a link to mine (works with Cata) http://www.wowinterface.com/download...pamFilter.html
Report comment to moderator  
Reply With Quote
Unread 10-10-10, 03:53 AM  
Talyrius
An Onyxian Warder
 
Talyrius's Avatar
AddOn Author - Click to view AddOns

Forum posts: 363
File comments: 259
Uploads: 3
Code:
Switched to Enhancement (5/31/0) talent spec.
You have learned a new spell: [Stormstrike].
You have learned a new ability: [Unleashed Rage].
You have learned a new ability: [Shamanistic Rage].
You have learned a new spell: [Feral Spirit].
I'm not sure why, but it's not filtering properly on the beta client.

EDIT:
Never mind. I got it to work.
Last edited by Talyrius : 10-10-10 at 04:24 AM.
Report comment to moderator  
Reply With Quote
Unread 07-09-09, 10:16 AM  
Dainton
A Flamescale Wyrmkin
 
Dainton's Avatar
AddOn Author - Click to view AddOns

Forum posts: 115
File comments: 64
Uploads: 1
Your TOC interface version says "31000" when it should be "30100" (or "30200" for PTR). Just a heads up. :P
Report comment to moderator  
Reply With Quote
Unread 04-26-09, 10:54 PM  
sweede
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 18
File comments: 16
Uploads: 3
Thanks ! i scrubbed the scripts from a fubar plugin that did a lot of junk i didnt want. I tossed it up quick for some guildmates and anyone else that wants to use it.

Originally posted by Phanx
Your filter function is incompatible with other addons that want to filter the same message group, because you're not returning the original values when you don't suppress the message. You're also creating an extra local variable and reading out of a deprecated global variable instead of simply using the value that's passed to your filter function.

Instead of:
Code:
HideSpam.filter = function(self, event, ...)
	local msg = arg1;
	if strfind(msg, spamFilterMatch1) then
		return true
	elseif strfind(msg, spamFilterMatch2) then
		return true
	elseif strfind(msg, spamFilterMatch3) then
		return true
	end
end
Do:
Code:
HideSpam.filter = function(self, event, msg, ...)
	if strfind(msg, spamFilterMatch1) then
		return true
	elseif strfind(msg, spamFilterMatch2) then
		return true
	elseif strfind(msg, spamFilterMatch3) then
		return true
	end
	return false, msg, ...
end
Report comment to moderator  
Reply With Quote
Unread 04-26-09, 07:52 PM  
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 5617
File comments: 2321
Uploads: 54
Your filter function is incompatible with other addons that want to filter the same message group, because you're not returning the original values when you don't suppress the message. You're also creating an extra local variable and reading out of a deprecated global variable instead of simply using the value that's passed to your filter function.

Instead of:
Code:
HideSpam.filter = function(self, event, ...)
	local msg = arg1;
	if strfind(msg, spamFilterMatch1) then
		return true
	elseif strfind(msg, spamFilterMatch2) then
		return true
	elseif strfind(msg, spamFilterMatch3) then
		return true
	end
end
Do:
Code:
HideSpam.filter = function(self, event, msg, ...)
	if strfind(msg, spamFilterMatch1) then
		return true
	elseif strfind(msg, spamFilterMatch2) then
		return true
	elseif strfind(msg, spamFilterMatch3) then
		return true
	end
	return false, msg, ...
end
Report comment to moderator  
Reply With Quote
Unread 04-26-09, 07:18 PM  
thatguyzp
A Defias Bandit
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 15
Uploads: 3
This is the best addon ever, very nice.

+600

Report comment to moderator  
Reply With Quote
Unread 04-26-09, 07:09 PM  
sweede
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 18
File comments: 16
Uploads: 3
Ok, 3rd edit is the win !

This error happens when you log in as your secondary spec. If you reload UI the error doesn't appear.

The addon still works correctly, it just tosses this minor error out.


Originally posted by reale
ID: 1
Error occured in: Global
Count: 1
Message: ..\AddOns\azHideSpam\core.lua line 58:
attempt to concatenate local 'c' (a nil value)
Debug:
[C]: ?
azHideSpam\core.lua:58:
azHideSpam\core.lua:29
Last edited by sweede : 04-26-09 at 11:12 PM.
Report comment to moderator  
Reply With Quote
Unread 04-26-09, 05:17 PM  
reale
A Kobold Labourer

Forum posts: 1
File comments: 164
Uploads: 0
Error

ID: 1
Error occured in: Global
Count: 1
Message: ..\AddOns\azHideSpam\core.lua line 58:
attempt to concatenate local 'c' (a nil value)
Debug:
[C]: ?
azHideSpam\core.lua:58:
azHideSpam\core.lua:29
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: