also apply that to trunk

git-svn-id: file:///home/shish/svn/shimmie2/trunk@603 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
shish 2007-10-28 18:10:29 +00:00
parent 1f3cb09c8d
commit b97a7bf912

View File

@ -296,9 +296,9 @@ class CommentList extends Extension {
$this->theme->display_error($page, "Comment Limit Hit",
"You've posted several comments recently; wait a minute and try again...");
}
else if($this->is_spam($comment)) {
else if($user->is_anonymous() && $this->is_spam($comment)) {
$this->theme->display_error($page, "Spam Detected",
"Akismet thinks that your comment is spam. Try rewriting the comment?");
"Akismet thinks that your comment is spam. Try rewriting the comment, or logging in.");
}
else {
$database->Execute(