I've just started using this addon, so I turned on BADBOY_POPUP just to keep an eye on what it was reacting to. Started getting errors today when it tried to report (and popup) gold spam with the phrase "10% off". BadBoy appends the raw text to the popup's text field, and then StaticPopup_Show runs that string through :SetFormattedText, so unescaped percent signs throw a spanner in the works.
This fixed it.
--- BadBoy.lua.orig 2009-07-15 16:50:21.421875000 -0400
+++ BadBoy.lua 2009-07-15 16:51:46.765625000 -0400
@@ -189,7 +189,7 @@
_G.COMPLAINT_ADDED = "|cFF33FF99BadBoy|r: " .. orig .. " ("..name..")" --Add name to reported message
if _G.BADBOY_POPUP then --Manual reporting via popup
--Add original spam line to Blizzard popup message
- _G.StaticPopupDialogs["CONFIRM_REPORT_SPAM_CHAT"].text = _G.REPORT_SPAM_CONFIRMATION .."\n\n".. raw
+ _G.StaticPopupDialogs["CONFIRM_REPORT_SPAM_CHAT"].text = _G.REPORT_SPAM_CONFIRMATION .."\n\n".. raw:gsub("%%","%%%%")
local dialog = _G.StaticPopup_Show("CONFIRM_REPORT_SPAM_CHAT", name)
dialog.data = id
Got this today: [Jveykrxnsdmc:1] does not wish to be disturbed: Sorry, to disturb you. Welcome to our website. good luck to you! ^^
Got both badboy anti spam and badboy_levels which is set to /script BADBOY_LEVEL = 2.
Thanks, I wont be "fixing" that since it's not really a problem. In 99% of cases when spammers use DND to spam they have some kind of URL or advertisement in it, in which case it would get reported and removed by BadBoy. It's very rare for something like this to happen, and since there is no gain for the spammer (and wouldn't make sense to add that quote to the blacklist) I'll leave it as-is for now.