diff --git a/prv/modules/imageboard.scm b/prv/modules/imageboard.scm index 97a5a7b..076a03a 100755 --- a/prv/modules/imageboard.scm +++ b/prv/modules/imageboard.scm @@ -951,6 +951,9 @@ #:lines-error "Error: Comment has too many lines") => (lambda (message) (tpl->response (message-tpl message)))) ((check-string-limits filename max-filename-length #:length-error "Error: Filename length too long" #:lines-error "Error: Filename has too many lines") => (lambda (message) (tpl->response (message-tpl message)))) + ((string-match "^([[:space:]]*[^<]+)+[[:space:]]*$" + (escape-str raw-comment)) + (tpl->response (message-tpl "Error: This looks like spam!"))) (else (if (and (not (null? subpost)) (> (string->number (car subpost)) 1))