[Phpfreechat-svn] SF.net SVN: phpfreechat: [629] trunk/src/commands/quit.class.php
Status: Beta
Brought to you by:
kerphi
From: <ke...@us...> - 2006-06-27 20:05:39
|
Revision: 629 Author: kerphi Date: 2006-06-27 13:05:18 -0700 (Tue, 27 Jun 2006) ViewCVS: http://svn.sourceforge.net/phpfreechat/?rev=629&view=rev Log Message: ----------- Now /quit will leave the joined channels Modified Paths: -------------- trunk/src/commands/quit.class.php Modified: trunk/src/commands/quit.class.php =================================================================== --- trunk/src/commands/quit.class.php 2006-06-27 19:58:06 UTC (rev 628) +++ trunk/src/commands/quit.class.php 2006-06-27 20:05:18 UTC (rev 629) @@ -21,15 +21,15 @@ foreach( $u->channels as $id => $chandetail ) if ($container->removeNick($chandetail["recipient"], $u->nick)) { - $cmd =& pfcCommand::Factory("notice"); - $cmd->run($xml_reponse, $clientid, $quitmsg, $sender, $chandetail["recipient"], $id, 2); + $cmd =& pfcCommand::Factory("leave"); + $cmd->run($xml_reponse, $clientid, $id, $sender, $chandetail["recipient"], $id, 2); } // from the private messages foreach( $u->privmsg as $id => $pvdetail ) if ($container->removeNick($pvdetail["recipient"], $u->nick)) { - $cmd =& pfcCommand::Factory("notice"); - $cmd->run($xml_reponse, $clientid, $quitmsg, $sender, $pvdetail["recipient"], $id, 2); + $cmd =& pfcCommand::Factory("leave"); + $cmd->run($xml_reponse, $clientid, $id, $sender, $pvdetail["recipient"], $id, 2); } // from the server $container->removeNick(NULL, $u->nick); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |