[Phpfreechat-svn] SF.net SVN: phpfreechat: [478] trunk/src/containers/file.class.php
Status: Beta
Brought to you by:
kerphi
From: <ke...@us...> - 2006-04-27 10:09:56
|
Revision: 478 Author: kerphi Date: 2006-04-27 03:09:45 -0700 (Thu, 27 Apr 2006) ViewCVS: http://svn.sourceforge.net/phpfreechat/?rev=478&view=rev Log Message: ----------- code cleaning : remove unused code Modified Paths: -------------- trunk/src/containers/file.class.php Modified: trunk/src/containers/file.class.php =================================================================== --- trunk/src/containers/file.class.php 2006-04-26 17:49:18 UTC (rev 477) +++ trunk/src/containers/file.class.php 2006-04-27 10:09:45 UTC (rev 478) @@ -118,23 +118,7 @@ flock ($fp, LOCK_UN); // unlock fclose($fp); - - /** - * @todo: this is not the container' job to keep synchronized the user' metadatas ! - */ - - // update the user's metadata (channels) - if ($chan != NULL) - { - $userchan = $this->getMeta("channels", "nickname", $nick); - $userchan = $userchan != NULL ? unserialize($userchan) : array(); - if (!in_array($chan, $userchan)) - { - $userchan[] = $chan; - $this->setMeta(serialize($userchan), "channels", "nickname", $nick); - } - } - + // if (!in_array($nickname, $this->_users)) // $this->_users[] = $nickname; // _users will be used by getOnlineUserList @@ -166,31 +150,6 @@ @unlink($nick_filename); - - - /** - * @todo: this is not the container' job to keep synchronized the user' metadatas ! - */ - - // update the user's metadata (channels) - if ($chan != NULL) - { - // the user just disconnect from a channel - $userchan = $this->getMeta("channels", "nickname", $nick); - $userchan = $userchan != NULL ? unserialize($userchan) : array(); - if (in_array($chan, $userchan)) - { - $key = array_search($chan, $userchan); - unset($userchan[$key]); - $this->setMeta(serialize($userchan), "channels", "nickname", $nick); - } - } - else - { - // the user disconnect from the whole server - $this->rmMeta("channels", "nickname", $nick); - } - /* // remove the nickname from the cache list if (in_array($nick, $this->_users)) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |