From 49617437a3d8269c7f398e50817b260831b6d4b5 Mon Sep 17 00:00:00 2001 From: Ben Phelps Date: Thu, 23 May 2013 23:20:33 -0500 Subject: [PATCH] updated toc --- SimpleSpam.lua | 32 ++++++++++++++++---------------- SimpleSpam.toc | 2 +- 2 files changed, 17 insertions(+), 17 deletions(-) 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 -- 1.7.9.5