[Phpfreechat-svn] SF.net SVN: phpfreechat: [639] trunk/src/commands/updatemynick.class.php
Status: Beta
Brought to you by:
kerphi
From: <ke...@us...> - 2006-07-03 15:12:04
|
Revision: 639 Author: kerphi Date: 2006-07-03 08:10:54 -0700 (Mon, 03 Jul 2006) ViewCVS: http://svn.sourceforge.net/phpfreechat/?rev=639&view=rev Log Message: ----------- Bug fix: if the user is not present on the channel, call the createNick function in order to update the user metadata which are maybe nonexistent (no more ghost users). Modified Paths: -------------- trunk/src/commands/updatemynick.class.php Modified: trunk/src/commands/updatemynick.class.php =================================================================== --- trunk/src/commands/updatemynick.class.php 2006-07-03 13:20:40 UTC (rev 638) +++ trunk/src/commands/updatemynick.class.php 2006-07-03 15:10:54 UTC (rev 639) @@ -10,10 +10,13 @@ $u =& $this->u; $container =& $c->getContainerInstance(); - $was_there = $container->updateNick($recipient, $u->nick); if (!$was_there) { + // if the user were not in the list, it must be created in order to refresh his metadata + // because when the user is timeouted, his metadata are destroyed. + $container->createNick($recipient, $u->nick, $u->nickid); + /* @todo: write the timeout adjustment when the user object will be available if ($c->debug) pxlog("Cmd_updateMyNick[".$c->sessionid."]: nick ".$u->nick." updated but was not there, adjust timeout to ".$c->timeout, "chat", $c->getId()); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |