Spam avoidance:

* Added a blacklist
This commit is contained in:
Stefan Ritter 2009-04-26 01:07:02 +02:00
parent f51dc890be
commit a0969526f9
2 changed files with 3 additions and 0 deletions

1
blacklist Normal file
View File

@ -0,0 +1 @@
viagra

View File

@ -99,6 +99,8 @@ if cname and ctext and ctitle:
.replace(">", ">") \ .replace(">", ">") \
.replace("\"", """) .replace("\"", """)
# TODO: Read file with spam words
# Add comment # Add comment
comments_file = glob.glob(entries_dir + ctitle + '.comments') comments_file = glob.glob(entries_dir + ctitle + '.comments')
if not comments_file: if not comments_file: