cvs: pearbot /modules bugstats.php

From: Date: Sat, 26 Jun 2004 11:40:57 +0000
Subject: cvs: pearbot /modules bugstats.php
Groups: php.pear.bot 
Request: Send a blank email to pear-bot+get-43@lists.php.net to get a copy of this message
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; }

« previous php.pear.bot (#43) next »