[Phpfreechat-svn] SF.net SVN: phpfreechat: [630] trunk/src/commands/send.class.php
Status: Beta
Brought to you by:
kerphi
From: <ke...@us...> - 2006-06-27 20:10:42
|
Revision: 630 Author: kerphi Date: 2006-06-27 13:10:30 -0700 (Tue, 27 Jun 2006) ViewCVS: http://svn.sourceforge.net/phpfreechat/?rev=630&view=rev Log Message: ----------- Don't allow to send a message when the user is not connected Modified Paths: -------------- trunk/src/commands/send.class.php Modified: trunk/src/commands/send.class.php =================================================================== --- trunk/src/commands/send.class.php 2006-06-27 20:05:18 UTC (rev 629) +++ trunk/src/commands/send.class.php 2006-06-27 20:10:30 UTC (rev 630) @@ -12,7 +12,14 @@ $text = phpFreeChat::PreFilterMsg($param); - + // send an error because the current user is not connected + if (!$u->active) + { + $cmd =& pfcCommand::Factory("error"); + $cmd->run($xml_reponse, $clientid, _pfc("Your must be connected to send a message"), $sender, $recipient, $recipientid); + return; + } + // $offline = $container->getMeta("offline", "nickname", $u->privmsg[$recipientid]["name"]); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |