cvs: pearbot /modules bugstats.php

[email protected] ("Tobias Schlitt") Sat, 26 Jun 2004 11:40:57 -0000
Newsgroups php.pear.bot
Message-ID <cvstoby1088250057@cvsserver>
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 <[email protected]> & Mirco Bauer <[email protected]>
 */
@@ -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;
     }