cvs: pear /Net_SmartIRC SmartIRC.php
| From: | Mirco 'meebey' Bauer | Date: | Fri, 27 May 2005 22:03:58 +0000 |
| Subject: | cvs: pear /Net_SmartIRC SmartIRC.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-32170@lists.php.net to get a copy of this message | ||
meebey Fri May 27 18:03:58 2005 EDT
Modified files:
/pear/Net_SmartIRC SmartIRC.php
Log:
- regex fix
http://cvs.php.net/diff.php/pear/Net_SmartIRC/SmartIRC.php?r1=1.86&r2=1.87&ty=u
Index: pear/Net_SmartIRC/SmartIRC.php
diff -u pear/Net_SmartIRC/SmartIRC.php:1.86 pear/Net_SmartIRC/SmartIRC.php:1.87
--- pear/Net_SmartIRC/SmartIRC.php:1.86 Mon Mar 21 16:04:14 2005
+++ pear/Net_SmartIRC/SmartIRC.php Fri May 27 18:03:58 2005
@@ -1,9 +1,9 @@
<?php
/**
- * $Id: SmartIRC.php,v 1.86 2005/03/21 21:04:14 meebey Exp $
- * $Revision: 1.86 $
+ * $Id: SmartIRC.php,v 1.87 2005/05/27 22:03:58 meebey Exp $
+ * $Revision: 1.87 $
* $Author: meebey $
- * $Date: 2005/03/21 21:04:14 $
+ * $Date: 2005/05/27 22:03:58 $
*
* Net_SmartIRC
* This is a PHP class for communication with IRC networks,
@@ -44,7 +44,7 @@
*/
// ------- PHP code ----------
include_once('SmartIRC/defines.php');
-define('SMARTIRC_VERSION', '0.6.0-dev ($Revision: 1.86 $)');
+define('SMARTIRC_VERSION', '0.6.0-dev ($Revision: 1.87 $)');
define('SMARTIRC_VERSIONSTRING', 'Net_SmartIRC '.SMARTIRC_VERSION);
/**
@@ -2083,7 +2083,7 @@
*/
function _gettype($line)
{
- if (preg_match('/^:.*? [0-9]{3} .*$/', $line) == 1) {
+ if (preg_match('/^:[^ ]+? [0-9]{3} .+$/', $line) == 1) {
$lineex = explode(' ', $line);
$code = $lineex[1];