Index: bot.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/bot/bot.module,v
retrieving revision 1.9.2.9
diff -u -p -r1.9.2.9 bot.module
--- bot.module	29 Jun 2007 02:38:43 -0000	1.9.2.9
+++ bot.module	16 Oct 2007 21:19:41 -0000
@@ -78,13 +78,13 @@ function bot_irc_msg_channel($data, $fro
   // our IRC help interface which piggybacks off of Drupal's hook_help().
   if (preg_match("/^($addressed)help\s*([^\?]*)\s*\??/i", $data->message, $help_matches)) {
     if (!$help_matches[2]) { // no specific help was asked for so give 'em a list.
-      $irc_features = module_invoke_all('help', 'irc:features');
+      $irc_features = array_filter(module_invoke_all('help', 'irc:features'));
       asort($irc_features); // alphabetical listing of features.
       bot_message($to, t('Detailed information is available by asking for "help <feature>" where <feature> is one of: !features.', array('!features' => implode(', ', $irc_features))));
     }
     else { // a specific type of help was required, so load up just that bit of text.
       $feature_name = 'irc:features#'. preg_replace('/[^\w\d]/', '_', drupal_strtolower(trim($help_matches[2])));
-      $feature_help = module_invoke_all('help', $feature_name);
+      $feature_help = array_filter(module_invoke_all('help', $feature_name));
       bot_message($to, array_shift($feature_help));
     }
   }
@@ -146,10 +146,10 @@ function bot_overview() {
       '%name' => variable_get('bot_nickname', 'bot_module'))).'</p>';
   $output .= '<ul id="bot_features">';
 
-  $irc_features = module_invoke_all('help', 'irc:features');
+  $irc_features = array_filter(module_invoke_all('help', 'irc:features')_;
   asort($irc_features); // alphabetical listing of features.
   foreach ($irc_features as $irc_feature) {
-    $feature_help = module_invoke_all('help', 'irc:features#'. preg_replace('/[^\w\d]/', '_', drupal_strtolower(trim($irc_feature))));
+    $feature_help = array_filter(module_invoke_all('help', 'irc:features#'. preg_replace('/[^\w\d]/', '_', drupal_strtolower(trim($irc_feature)))));
     $output .= '<li><span class="bot_feature">'.check_plain($irc_feature).':</span> '.check_plain(array_shift($feature_help)).'</li>';
   }
 
