Revision: 530
Author: kerphi
Date: 2006-05-28 11:47:04 -0700 (Sun, 28 May 2006)
ViewCVS: http://svn.sourceforge.net/phpfreechat/?rev=530&view=rev
Log Message:
-----------
Bug fix: closing a none active tab wasn't possible
Modified Paths:
--------------
trunk/src/commands/leave.class.php
Modified: trunk/src/commands/leave.class.php
===================================================================
--- trunk/src/commands/leave.class.php 2006-05-28 18:36:08 UTC (rev 529)
+++ trunk/src/commands/leave.class.php 2006-05-28 18:47:04 UTC (rev 530)
@@ -14,10 +14,10 @@
// tab to leave can be passed in the parameters
// a reason can also be present (used for kick and ban commands)
$id = ""; $reason = "";
- if (preg_match("/([a-z0-9]*) (.*)/i", $param, $res))
+ if (preg_match("/([a-z0-9]*)( (.*)|)/i", $param, $res))
{
$id = $res[1];
- $reason = $res[2];
+ $reason = trim($res[2]);
}
if ($id == "") $id = $recipientid; // be default this is the current tab to leave
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|