Index: bot_google.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/bot_google/bot_google.module,v
retrieving revision 1.1
diff -u -p -r1.1 bot_google.module
--- bot_google.module	29 Mar 2009 11:00:52 -0000	1.1
+++ bot_google.module	17 May 2010 21:57:00 -0000
@@ -32,15 +32,13 @@ function bot_google_irc_msg_channel($dat
     }
   }
 
-  if (strlen($keywords) > 2) {
+  if (drupal_strlen($keywords) > 2) {
     $search = bot_google_search(urlencode($keywords));
     if (!empty($search[0]->url)) {
-      $output = chr(2) ."Google" . chr(2) . "'s";
-      $output .= ' lucky result for "' . chr(2) . $keywords . chr(2) . '" is: ' . $search[0]->url;
-      $output .= '. More results at: http://google.com/search?q=' . urlencode($keywords);
+      $output = t("Google's lucky result for \"!keywords\" is: !url - more results at: !more", array('!keywords' => $keywords, '!url' => $search[0]->url, '!more' => 'http://google.com/search?q='. urlencode($keywords)));
     }
     else {
-      $output = 'Your search - ' . chr(2) . $keywords . chr(2) . ' - did not match any documents.';
+      $output = t('Your search - !keywords - did not match any documents.', array('!keywords' => $keywords));
     }
     bot_message($to, $output);
   }
