revert dummy change

pull/6/head
Yax 6 years ago
parent e12c23f0ad
commit a38b2dfbe8

@ -29,6 +29,7 @@ env = None
# store client IP in memory until classification
client_ips = {}
class Processor(Thread):
def stop(self):
@ -168,7 +169,8 @@ def reply_comment_email(data):
# put a log to help fail2ban
if message[:2].upper() == 'SP': # SPAM
if comment_id in client_ips:
logger.info('SPAM comment from %s: %d' % (client_ips[comment_id], comment_id))
logger.info('SPAM comment from %s: %d' %
(client_ips[comment_id], comment_id))
else:
logger.info('cannot identify SPAM source: %d' % comment_id)
@ -210,8 +212,6 @@ def reply_comment_email(data):
notify_subscribed_readers(
comment.site.token, comment.site.url, comment.url)
# system quit
system_quit()
def late_reject_comment(id):
@ -463,10 +463,6 @@ def get_processor():
return proc
def system_quit():
sys.exit(0)
def start(template_dir):
global proc, env

Loading…
Cancel
Save