--- httpbl.module.orig	2009-09-12 16:59:43.000000000 -0500
+++ httpbl.module	2009-09-17 02:36:47.000000000 -0500
@@ -169,6 +169,8 @@ function httpbl_check() {
       // Blacklist?
       if ($response['threat'] > HTTPBL_THRESHOLD_BLACK && $response['type']) {
         if (variable_get('httpbl_log', FALSE)) {
+   		  include_once "includes/bootstrap.inc";
+  		  drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
           watchdog('httpbl', '%ip was blacklisted (%response)', array('%ip' => $ip, '%response' => $response['raw']), WATCHDOG_WARNING, _httpbl_ipdata($ip));
         }
         if ($stats) {
@@ -179,6 +181,8 @@ function httpbl_check() {
       // Greylist?
       else if ($response['threat'] > HTTPBL_THRESHOLD_GREY && $response['type']) {
         if (variable_get('httpbl_log', FALSE)) {
+   		  include_once "includes/bootstrap.inc";
+  		  drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
           watchdog('httpbl', '%ip was greylisted (%response)', array('%ip' => $ip, '%response' => $response['raw']), WATCHDOG_WARNING, _httpbl_ipdata($ip));
         }
         if ($stats) {
@@ -611,6 +615,8 @@ function httpbl_dnslookup($ip, $key = NU
 
   if ($response[0] != '127') {
     // if the first octet is not 127, the response should be considered invalid
+   	include_once "includes/bootstrap.inc"; /* If logging is ever going to work then this one is important. */
+  	drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
     watchdog('httpbl', 'Lookup failed for %ip, response was %response', array('%ip' => $ip, '%response' => $values['raw']), WATCHDOG_ERROR);
     return FALSE;
   }
