cvs: pearbot / PEARbot.php

[email protected] ("Mirco 'meebey' Bauer") Fri, 25 Jul 2003 16:04:59 -0000
Newsgroups php.pear.bot
Message-ID <cvsmeebey1059149099@cvsserver>
meebey		Fri Jul 25 12:04:59 2003 EDT

  Modified files:              
    /pearbot	PEARbot.php 
  Log:
  - added negative response to who().
  
  
Index: pearbot/PEARbot.php
diff -u pearbot/PEARbot.php:1.13 pearbot/PEARbot.php:1.14
--- pearbot/PEARbot.php:1.13	Fri Jul 25 11:50:09 2003
+++ pearbot/PEARbot.php	Fri Jul 25 12:04:58 2003
@@ -1,7 +1,7 @@
 #!/home/meebey/php
 <?php
 /**
- * $Id: PEARbot.php,v 1.13 2003/07/25 15:50:09 meebey Exp $
+ * $Id: PEARbot.php,v 1.14 2003/07/25 16:04:58 meebey Exp $
  * 
  * PEARbot
  * this is an IRC service bot for #pear written in PHP
@@ -156,6 +156,8 @@
         
         if ($result !== false) {
             $irc->message(SMARTIRC_TYPE_CHANNEL, '#pear', $requester.": ".$lookupfor." is ".$result);
+        } else {
+            $irc->message(SMARTIRC_TYPE_CHANNEL, '#pear', $requester.": sorry, I don't know ".$lookupfor);
         }
     }
 }