[Phpfreechat-svn] SF.net SVN: phpfreechat: [610] trunk/src/commands/connect.class.php
Status: Beta
Brought to you by:
kerphi
From: <ke...@us...> - 2006-06-17 08:01:16
|
Revision: 610 Author: kerphi Date: 2006-06-17 01:01:09 -0700 (Sat, 17 Jun 2006) ViewCVS: http://svn.sourceforge.net/phpfreechat/?rev=610&view=rev Log Message: ----------- Bug fix: when this is the first connection, the u->channels is empty, to setup the oldmsg flag, c->channels must be used Modified Paths: -------------- trunk/src/commands/connect.class.php Modified: trunk/src/commands/connect.class.php =================================================================== --- trunk/src/commands/connect.class.php 2006-06-16 21:18:38 UTC (rev 609) +++ trunk/src/commands/connect.class.php 2006-06-17 08:01:09 UTC (rev 610) @@ -16,9 +16,14 @@ // reset the message id indicator (see getnewmsg.class.php) // i.e. be ready to re-get all last posted messages require_once(dirname(__FILE__)."/join.class.php"); - foreach($u->channels as $chan) + $channels = array(); + if (count($u->channels) == 0) + $channels = $c->channels; + else + foreach($u->channels as $chan) + $channels[] = $chan["name"]; + foreach($channels as $channame) { - $channame = $chan["name"]; $chanrecip = pfcCommand_join::GetRecipient($channame); $chanid = pfcCommand_join::GetRecipientId($channame); // reset the fromid flag This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |