Download
(635 b)
Download
Updated: 10-24-20 06:08 AM
Compatibility:
Classic Patch (1.13.5)
Classic Patch (1.13.4)
Shadowlands pre-patch (9.0.1)
Classic Patch (1.13.3)
Visions of N'Zoth (8.3.0)
Classic (1.13.2)
Updated:10-24-20 06:08 AM
Created:03-24-12 06:51 AM
Downloads:2,975
Favorites:12
MD5:

!sh (antispam)

Version: 3
by: semlar [More]

Blocks the same message from showing up more than once after loading ("Addon Loaded" messages).

This was made as an alternative to the outdated mod StopTheSpam.

Optional Files (0)


Post A Reply Comment Options
Unread 03-25-21, 05:41 PM  
ContactingWoWInterface
A Deviate Faerie Dragon

Forum posts: 12
File comments: 1
Uploads: 0
When logging in I still get the notification "Prat 3.0 (Memory): Settings Loaded" every time I enter the game. Aside from that, as the previous poster mentioned (though I don't believe it's tied to ElvUI), it would be nice to remove the "Loot Specialization set to:" as well. Everything else seems to work great though and I really appreciate this addon!
Last edited by ContactingWoWInterface : 03-25-21 at 06:19 PM.
Report comment to moderator  
Reply With Quote
Unread 10-27-16, 04:16 PM  
Petrah
A Pyroguard Emberseer
 
Petrah's Avatar
AddOn Author - Click to view AddOns

Forum posts: 2988
File comments: 334
Uploads: 10
Would you be able to add something that removes "Loot Specialization set to:" spam? It's coming from ElvUI and showing up for every login and every UI reload.
__________________
♪~ ( ) I My Sonos!
AddOn Authors: If your addon spams the chat box with "Addon v8.3.4.5.3 now loaded!", please add an option to disable it!
Report comment to moderator  
Reply With Quote
Unread 03-14-14, 05:38 PM  
semlar
A Pyroguard Emberseer
 
semlar's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1060
File comments: 187
Uploads: 25
Originally Posted by Phanx
Rather than using the "Enabled" variable, why not just remove your hook when you're done with it?

Code:
f:SetScript('OnEvent', function(f)
	Chat.AddMessage = Add -- restore the original function
	f:UnregisterAllEvents()
end)
That was literally what the original code did. I had to leave the hook in place because other addons hooking AddMessage after the fact would have their hooks overwritten when I reverted it.

edit for clarification:
I store a reference to AddMessage.
I replace the original AddMessage with my own function.
An addon like Prat loads and hooks my AddMessage with their function.
My addon unloads and overwrites Prat's hook with the reference to the original AddMessage function, crippling a very popular chat addon.
Last edited by semlar : 03-14-14 at 05:56 PM.
Report comment to moderator  
Reply With Quote
Unread 03-14-14, 04:24 PM  
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 5617
File comments: 2321
Uploads: 54
Rather than using the "Enabled" variable, why not just remove your hook when you're done with it?

Code:
f:SetScript('OnEvent', function(f)
	Chat.AddMessage = Add -- restore the original function
	f:UnregisterAllEvents()
end)
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
Last edited by Phanx : 03-14-14 at 04:37 PM.
Report comment to moderator  
Reply With Quote
Unread 03-24-12, 07:57 AM  
semlar
A Pyroguard Emberseer
 
semlar's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1060
File comments: 187
Uploads: 25
Originally Posted by Haleth
I like your style of coding, very compact
Thanks, let me know if it works okay, my addons aren't too spammy.
Report comment to moderator  
Reply With Quote
Unread 03-24-12, 07:17 AM  
Haleth
This Space For Rent
 
Haleth's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1173
File comments: 1146
Uploads: 17
I like your style of coding, very compact
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: