Home  |  Linux  | Mysql  | PHP  | XML
From:Tobias Schlitt Date:Sat Jun 26 05:40:57 2004
Subject:cvs: pearbot /modules bugstats.php
toby		Sat Jun 26 07:40:57 2004 EDT

  Modified files:              
    /pearbot/modules	bugstats.php 
  Log:
  * Fix regex.
  * Added pipe to topic.
  
  
http://cvs.php.net/diff.php/pearbot/modules/bugstats.php?r1=1.2&r2=1.3&ty=u
Index: pearbot/modules/bugstats.php
diff -u pearbot/modules/bugstats.php:1.2 pearbot/modules/bugstats.php:1.3
--- pearbot/modules/bugstats.php:1.2	Sat Jun 26 07:37:47 2004
+++ pearbot/modules/bugstats.php	Sat Jun 26 07:40:57 2004
@@ -1,9 +1,9 @@
 <?php
 /**
- * $Id: bugstats.php,v 1.2 2004/06/26 11:37:47 toby Exp $
- * $Revision: 1.2 $
+ * $Id: bugstats.php,v 1.3 2004/06/26 11:40:57 toby Exp $
+ * $Revision: 1.3 $
  * $Author: toby $
- * $Date: 2004/06/26 11:37:47 $
+ * $Date: 2004/06/26 11:40:57 $
  *
  * Copyright (c) 2004 Tobias Schlitt <toby@php.net> & Mirco Bauer <meebey@php.net>
 */
@@ -53,8 +53,8 @@
         }
         $chan = $irc->getChannel('#pear');
         $topic = $chan->topic;
-        $topic = preg_replace('/[0-9] open bugs/isU', '', $topic);
-        $irc->setTopic('#pear', $topic.' '.$count.' open bugs');
+        $topic = preg_replace('/\| [0-9]+ open bugs/isU', '', $topic);
+        $irc->setTopic('#pear', $topic.' | '.$count.' open bugs');
         return true;
     }
 
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