• Forum
  • Doc
  • Screenshots
  • Download
  • Donate
  • Contributors
  • Contact
  • Follow @phpfreechat
  • DEMO
  • Board index ‹ Version 1.x branch ‹ Contributions (v1.x)
  • Change font size
  • FAQ
  • Register
  • Login

Private messages resuming

Post a bug fix, a new feature, a theme ...

Moderators: OldWolf, re*s.t.a.r.s.*2

Post a reply
1 post • Page 1 of 1

Postby defr » Tue May 06, 2008 4:52 pm

In it's current form, the code that's supposed to re-open the private messages when a user re-connects doesn't work, showing the warning Missing Parameter instead. The following patch (against 1.1, I've checked that the problem is still present in trunk revision 1220 of connect.class.php but there might be an offset), fixes the problem:


Code: Select all
Index: phpfreechat/src/commands/connect.class.php
===================================================================
--- phpfreechat/src/commands/connect.class.php
+++ phpfreechat/src/commands/connect.class.php
@@ -74,7 +74,7 @@
       for($i = 0 ; $i < count($pvlist) ; $i++)
       {
         $cmdp = array();
-        $cmdp["param"] = $pvlist[$i];
+        $cmdp["params"] = array($pvlist[$i]);
         $cmd =& pfcCommand::Factory( $i < count($pvlist)-1 || !$joinoldchan ? 'privmsg2' : 'privmsg' );
         $cmd->run($xml_reponse, $cmdp);
       }
defr
New member
 
Posts: 1
Joined: Tue May 06, 2008 4:35 pm
Top

Post a reply
1 post • Page 1 of 1

Return to Contributions (v1.x)

Who is online

Users browsing this forum: No registered users and 8 guests

  • Board index
  • The team • Delete all board cookies • All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
Sign in
Wrong credentials
Sign up I forgot my password
.
jeu-gratuit.net | more partners
Fork me on GitHub