[Phpfreechat-svn] SF.net SVN: phpfreechat: [1091] trunk/src/pfccommand.class.php
Status: Beta
Brought to you by:
kerphi
From: <gpi...@us...> - 2007-08-06 19:55:20
|
Revision: 1091 http://phpfreechat.svn.sourceforge.net/phpfreechat/?rev=1091&view=rev Author: gpinzone Date: 2007-08-06 12:55:21 -0700 (Mon, 06 Aug 2007) Log Message: ----------- Simplified RunPendingCmdToPlay Modified Paths: -------------- trunk/src/pfccommand.class.php Modified: trunk/src/pfccommand.class.php =================================================================== --- trunk/src/pfccommand.class.php 2007-08-06 15:19:59 UTC (rev 1090) +++ trunk/src/pfccommand.class.php 2007-08-06 19:55:21 UTC (rev 1091) @@ -206,7 +206,7 @@ // take a command from the list $cmdtoplay = $ct->getUserMeta($nickid, 'cmdtoplay'); $cmdtoplay = ($cmdtoplay == NULL) ? array() : unserialize($cmdtoplay); - if (count($cmdtoplay) == 0) { $morecmd = false; continue; } + if (count($cmdtoplay) == 0) { $morecmd = false; break; } // take the last posted command $cmdtmp = array_pop($cmdtoplay); // store the new cmdtoplay list (-1 item) @@ -226,12 +226,6 @@ $cmd->run($xml_reponse, $cmdp); else @$cmd->run($xml_reponse, $cmdp); - - // check if there is other command to play - $cmdtoplay = $ct->getUserMeta($nickid, 'cmdtoplay'); - $cmdtoplay = ($cmdtoplay == NULL) ? array() : unserialize($cmdtoplay); - - $morecmd = (count($cmdtoplay) > 0); } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |