[Phpfreechat-svn] SF.net SVN: phpfreechat: [499] trunk/src/commands
Status: Beta
Brought to you by:
kerphi
From: <ke...@us...> - 2006-05-23 20:33:37
|
Revision: 499 Author: kerphi Date: 2006-05-23 13:33:23 -0700 (Tue, 23 May 2006) ViewCVS: http://svn.sourceforge.net/phpfreechat/?rev=499&view=rev Log Message: ----------- code cleaning Modified Paths: -------------- trunk/src/commands/connect.class.php trunk/src/commands/send.class.php Modified: trunk/src/commands/connect.class.php =================================================================== --- trunk/src/commands/connect.class.php 2006-05-19 13:39:57 UTC (rev 498) +++ trunk/src/commands/connect.class.php 2006-05-23 20:33:23 UTC (rev 499) @@ -14,45 +14,6 @@ $container =& $c->getContainerInstance(); $disconnected_users = $container->removeObsoleteNick(NULL, $c->timeout); - /* - // reset the nickname cache - $_SESSION[$c->prefix."nicklist_".$c->getId()."_".$clientid] = NULL; - - // disable or not the nickname button if the frozen_nick is on/off - if ($c->frozen_nick) - $xml_reponse->addAssign($c->prefix."handle", "disabled", true); - else - $xml_reponse->addAssign($c->prefix."handle", "disabled", false); - - // disconnect last connected users if necessary - $cmd =& pfcCommand::Factory("getonlinenick"); - $cmd->run($xml_reponse, $clientid); - - // check if the wanted nickname was allready known - if ($c->debug) - { - $container =& $c->getContainerInstance(); - $nickid = $container->getNickId($u->nick); - pxlog("/connect (nick=".$u->nick." nickid=".$nickid.")", "chat", $c->getId()); - } - - if ($u->nick == "") - { - // ask user to choose a nickname - $cmd =& pfcCommand::Factory("asknick"); - $cmd->run($xml_reponse, $clientid, ""); - } - else - { - $cmd =& pfcCommand::Factory("nick"); - $cmd->run($xml_reponse, $clientid, $u->nick); - } - */ - - // start updates - // $xml_reponse->addScript("pfc.updateChat(true);"); - // $xml_reponse->addScript("pfc.isconnected = true; pfc.refresh_loginlogout();"); - // connect to the server $xml_reponse->addScript("pfc.handleResponse('connect', 'ok', '');"); Modified: trunk/src/commands/send.class.php =================================================================== --- trunk/src/commands/send.class.php 2006-05-19 13:39:57 UTC (rev 498) +++ trunk/src/commands/send.class.php 2006-05-23 20:33:23 UTC (rev 499) @@ -11,6 +11,10 @@ $nick = phpFreeChat::FilterSpecialChar($sender); $text = phpFreeChat::PreFilterMsg($param); + + + // $offline = $container->getMeta("offline", "nickname", $u->privmsg[$recipientid]["name"]); + // if this channel is a pv (one to one channel), // first of all, check if the other user is connected This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |