updated toc
Ben Phelps [05-24-13 - 04:20]
diff --git a/SimpleSpam.lua b/SimpleSpam.lua
index 547a581..2883dee 100755
--- a/SimpleSpam.lua
+++ b/SimpleSpam.lua
@@ -123,9 +123,9 @@ SS.greyList = {
function SS.Check(sender)
for _, name in pairs(SSBlocked) do
- if name == sender then
- return true
- end
+ if name == sender then
+ return true
+ end
end
return false
end
@@ -153,35 +153,35 @@ function SS.SimpleSpam(self, event, msg, ...)
-- blacklist
for _, word in ipairs(SS.blackList) do
- if (string.match(msg, word)) then
- matchCount = matchCount + 4.0
- end
+ if (string.match(msg, word)) then
+ matchCount = matchCount + 4.0
+ end
end
-- greylist
for _, word in ipairs(SS.greyList) do
- if (string.match(msg, word)) then
- matchCount = matchCount + 1.0
- end
+ if (string.match(msg, word)) then
+ matchCount = matchCount + 1.0
+ end
end
-- obfuscated characters
for _, word in ipairs(SS.obfs) do
- if (string.match(msg, word)) then
- matchCount = matchCount + SSAccentScore
- end
+ if (string.match(msg, word)) then
+ matchCount = matchCount + SSAccentScore
+ end
end
-- guild spam
for _, word in ipairs(SS.guildList) do
- if (string.match(msg, word)) then
- matchCount = matchCount + 1.5
- end
+ if (string.match(msg, word)) then
+ matchCount = matchCount + 1.5
+ end
end
-- English only please
if select(2, string.gsub(msg, "[a-zA-Z0-9.]", ".")) < (#msg/2) and #msg >= 4 then
- return true -- don't ban for non english. ignore it
+ return true -- don't ban for non english. ignore it
end
-- block if more than 3 points
diff --git a/SimpleSpam.toc b/SimpleSpam.toc
index a0a5a33..d6a66dd 100755
--- a/SimpleSpam.toc
+++ b/SimpleSpam.toc
@@ -1,4 +1,4 @@
-## Interface: 50200
+## Interface: 50300
## Title: SimpleSpam
## Notes: Simple Gold Spam Blocker
## Version: 1.0.2