From b97a7bf912efa3ecdd1166018d22658dc3b6109a Mon Sep 17 00:00:00 2001 From: shish Date: Sun, 28 Oct 2007 18:10:29 +0000 Subject: [PATCH] also apply that to trunk git-svn-id: file:///home/shish/svn/shimmie2/trunk@603 7f39781d-f577-437e-ae19-be835c7a54ca --- ext/comment/main.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/comment/main.php b/ext/comment/main.php index 5ac83dfb..53df30ff 100644 --- a/ext/comment/main.php +++ b/ext/comment/main.php @@ -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(