[Phpfreechat-svn] SF.net SVN: phpfreechat: [579] trunk/src/commands/me.class.php
Status: Beta
Brought to you by:
kerphi
From: <ke...@us...> - 2006-06-14 16:38:38
|
Revision: 579 Author: kerphi Date: 2006-06-14 09:38:26 -0700 (Wed, 14 Jun 2006) ViewCVS: http://svn.sourceforge.net/phpfreechat/?rev=579&view=rev Log Message: ----------- Bug fix: the /me command was broken (thanks to Eury) Modified Paths: -------------- trunk/src/commands/me.class.php Modified: trunk/src/commands/me.class.php =================================================================== --- trunk/src/commands/me.class.php 2006-06-14 16:27:46 UTC (rev 578) +++ trunk/src/commands/me.class.php 2006-06-14 16:38:26 UTC (rev 579) @@ -4,14 +4,15 @@ class pfcCommand_me extends pfcCommand { - function run(&$xml_reponse, $clientid, $msg) + function run(&$xml_reponse, $clientid, $param, $sender, $recipient, $recipientid) { $c =& $this->c; $u =& $this->u; $container =& $c->getContainerInstance(); - $msg = phpFreeChat::PreFilterMsg($msg); - $container->writeMsg("*me*", $u->nick." ".$msg); + $msg = phpFreeChat::PreFilterMsg($param); + $container->write($recipient, "*me*", $this->name, $u->nick." ".$msg); + if ($c->debug) pxlog("/me ".$msg, "chat", $c->getId()); } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |