--- E:/webdesign/drupal/Drupal-6/guestbook-6.x-2.x-dev/guestbook/guestbook.module	Fri Apr 02 14:47:52 2010
+++ E:/webdesign/drupal/Drupal-6/aanpassingen/modules/guestbook-6.x-2.x-dev/guestbook.module	Sun Nov 13 19:28:23 2011
@@ -1,6 +1,6 @@
 <?php
 // $Id: guestbook.module,v 1.21 2010/04/02 13:47:52 sun Exp $
-
+// 2011-11-13	hovel	work together with module Spam
 if (module_exists("spam") == true) {
   if (file_exists("modules/spam/spam.module")) {
     include_once "modules/spam/spam.module";
@@ -507,8 +507,13 @@
 
   if (module_exists('spam')) {
     // Is this spam?
-    $spamcheck = $form_state['values']['anonname'] .' '. $form_state['values']['anonemail'] .' '. $form_state['values']['anonwebsite'];
-    if (spam_content_filter('guestbook', 1, $spamcheck, $message, '_guestbook_spam')) {
+
+		$spamcheck = array();
+		$spamcheck['anonname'] = $form_state['values']['anonname'];
+		$spamcheck['anonemail'] = $form_state['values']['anonemail'];
+		$spamcheck['anonwebsite'] = $form_state['values']['anonwebsite'];
+		$spamcheck['message'] = $message;
+		if (spam_scan($spamcheck, 'guestbook')) {
       return;
     }
   }
