Skip to content

Commit

Permalink
engines.Akismet: Typepad feedback result
Browse files Browse the repository at this point in the history
  • Loading branch information
CyberShadow committed Dec 26, 2012
1 parent b2d083a commit 9708d41
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions engines/Akismet.d
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@ struct Akismet(string SERVER, string CONFIGFILE)
static void sendSpam(Post post, CheckResult checkResult)
{
auto result = request(post, "submit-spam");
enforce(result == "Thanks for making the web a better place.", result);
enforce(result == "Thanks for making the web a better place." || result == "Feedback received.", result);
}

static void sendHam(Post post, CheckResult checkResult)
{
auto result = request(post, "submit-ham");
enforce(result == "Thanks for making the web a better place.", result);
enforce(result == "Thanks for making the web a better place." || result == "Feedback received.", result);
}

static SpamEngine makeEngine(string name) { return SpamEngine(name, &check, &sendSpam, &sendHam); }
Expand Down

0 comments on commit 9708d41

Please sign in to comment.