[Phpfreechat-svn] SF.net SVN: phpfreechat:[1267] trunk/demo/demo27_customized_command.php
Status: Beta
Brought to you by:
kerphi
From: <ke...@us...> - 2009-12-13 21:36:31
|
Revision: 1267 http://phpfreechat.svn.sourceforge.net/phpfreechat/?rev=1267&view=rev Author: kerphi Date: 2009-12-13 21:36:20 +0000 (Sun, 13 Dec 2009) Log Message: ----------- A user reported this fix because every time a guest rolled, they got a new username! Modified Paths: -------------- trunk/demo/demo27_customized_command.php Modified: trunk/demo/demo27_customized_command.php =================================================================== --- trunk/demo/demo27_customized_command.php 2009-10-03 14:00:52 UTC (rev 1266) +++ trunk/demo/demo27_customized_command.php 2009-12-13 21:36:20 UTC (rev 1267) @@ -13,9 +13,9 @@ $recipient = $p["recipient"]; $recipientid = $p["recipientid"]; - $c =& pfcGlobalConfig::Instance(); + $u =& pfcUserConfig::Instance(); - $nick = $c->nick; + $nick = $u->nick; $ct =& pfcContainer::Instance(); $text = trim($param); @@ -27,7 +27,7 @@ $result = $dice->error_get(); $cmdp = $p; $cmdp["param"] = "Cmd_roll failed: " . $result; - $cmd =& pfcCommand::Factory("error", $c); + $cmd =& pfcCommand::Factory("error"); $cmd->run($xml_reponse, $cmdp); } else This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |