New Parameter to cancel remembering of user channels ... This maybe would need to bring to end
index.php:
$params["dontremember_userchannels"] = true; // New Parameter to cancel remembering of user channels ... This maybe would need to bring to end
* * * * * * * * * * *
src/pfc_globalconfig.class
/**
* <p>Don't remember user channel when user comes on page or updates page.
* The goal is to prevent chatters leaving pages without closing the channels.
* Benefits are 1) user need not to close all channels if he has 20 rooms open...
* 2) I hope this will help to get better performance... (I want to make users not having open the rooms if they don't use them!)
* @TODO - WILL BE USERS LOGOUT FROM CHANNELS? MAYBE NEED A FIX?
* (Default value: 10)</p>
*/
var $dontremember_userchannels = true;
* * * * * * * * * * *
src/commands/connect.class (L 62 - start of block IF changed):
if ($ret)
{
if ($c->dontremember_userchannels == false) { if ($c->dontremember_userchannels) $chanlist = (count($u->channels) == 0) ? $c->channels : $u->getChannelNames(); }
else $chanlist = $c->channels;
for($i = 0 ; $i < count($chanlist) ; $i++)