Home  |  Linux  | Mysql  | PHP  | XML
From:Mirco 'meebey' Bauer Date:Sat Jul 26 06:42:56 2003
Subject:cvs: pearbot /modules pearcmds.php
meebey		Sat Jul 26 08:42:56 2003 EDT

  Modified files:              
    /pearbot/modules	pearcmds.php 
  Log:
  - applied patch (nicos@php.net).
  
  
Index: pearbot/modules/pearcmds.php
diff -u pearbot/modules/pearcmds.php:1.3 pearbot/modules/pearcmds.php:1.4
--- pearbot/modules/pearcmds.php:1.3	Sat Jul 26 07:16:43 2003
+++ pearbot/modules/pearcmds.php	Sat Jul 26 08:42:56 2003
@@ -1,9 +1,9 @@
 <?php
 /**
- * $Id: pearcmds.php,v 1.3 2003/07/26 11:16:43 meebey Exp $
- * $Revision: 1.3 $
+ * $Id: pearcmds.php,v 1.4 2003/07/26 12:42:56 meebey Exp $
+ * $Revision: 1.4 $
  * $Author: meebey $
- * $Date: 2003/07/26 11:16:43 $
+ * $Date: 2003/07/26 12:42:56 $
  *
  * Copyright (c) 2003 Nicolas CHAILLAN <nicos@php.net>
 */
@@ -71,39 +71,41 @@
                 
             }
         }
+        
+        $print = explode('\n', $print);
         $irc->message(SMARTIRC_TYPE_QUERY, $data->nick, $print); 
     }
     
     function pear_info($package) 
     {
         passthru($this->pear_binary.' remote-info '.$package, $buf);
-        $buf = 'This is the PEARbot:\n\nHere are the informations for '.$package.':\n\n'.$buf;
+        $buf = "This is the PEARbot:\n\nHere are the informations for $package:\n\n".$buf;
         return $buf;
     }
     
     function pear_listing() 
     {
         passthru($this->pear_binary.' remote-list', $buf);
-        $buf = 'This is the PEARbot:\n\nHere are the PEAR\'s packages:\n\n'.$buf;
+        $buf = "This is the PEARbot:\n\nHere are the PEAR's packages:\n\n".$buf;
         return $buf;
     }
     
     function pear_search($search_for) 
     {
         passthru($this->pear_binary.' search '.$search_for, $buf);
-        $buf = 'This is the PEARbot:\n\nHere are the PEAR\'s packages that match '.$search_for.':\n\n'.$buf;
+        $buf = "This is the PEARbot:\n\nHere are the PEAR's packages that match ".$search_for.":\n\n".$buf;
         return $buf;
     }
     
     function pear_help() 
     {
-        return 'This is the PEARbot:\n.
+        return "This is the PEARbot:\n.
         PEAR Helps commands:\n
         Every commands start with !pear\n
-            -help: gives this information
-            -info package: gives the info of a PEAR package
-            -list: list all packages
-            -search search_for: searchs all packages that contain search_for.';
+            -help: gives this information\n
+            -info package: gives the info of a PEAR package\n
+            -list: list all packages\n
+            -search search_for: searchs all packages that contain search_for.\n";
     }
 }
 ?>


Navigate in group php.pear.bot at sever news.php.net
Previous Next




  
© No Copyright
You are free to use Anything
Site Maintained by Zareef Ahmed
Powered By PHP Consultants