From 54993195b2cf766205c942a9678bc36b359ee4eb Mon Sep 17 00:00:00 2001 From: Dominik Picheta Date: Sat, 30 Jan 2016 10:46:24 +0000 Subject: [PATCH] Fixes #74. --- forum.nim | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/forum.nim b/forum.nim index cdb72ca..7296738 100644 --- a/forum.nim +++ b/forum.nim @@ -552,12 +552,21 @@ proc spamCheck(c: var TForumData, subject, content: string): bool = for i in subject: if i in Letters: subjAlphabet.add(i) + case i + of '!': + subjAlphabet.add("i") + else: discard var contentAlphabet = "" for i in content: if i in Letters: contentAlphabet.add(i) + case i + of '!': + subjAlphabet.add("i") + else: discard - for word in ["appliance", "kitchen", "cheap", "sale"]: + for word in ["appliance", "kitchen", "cheap", "sale", "relocating", + "packers", "lenders", "fifa", "coins"]: if word in subjAlphabet.toLower() or word in contentAlphabet.toLower(): return true