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

Beta-11 internal /leave

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

Post a reply
7 posts • Page 1 of 1

Postby Beni » Sun Jul 22, 2007 11:11 am

Hi kerphi!
i have a proxy that triggers a /leave under some circumstances.

The code is as following:
$cmdp = $p;
$cmdp["params"] = array('ch', $open_channels[0]);
$cmdp["param"] = 'ch '.$open_channels[0];
$cmd =& pfcCommand::Factory("leave");
$cmd->run($xml_reponse, $cmdp);

$open_channels is a array with channel names the user has open. It is successfully read from the users metadata.

With prior PFC version all went fine. With beta-11 i get a "Missing parameters" error.
I looked a bit through the code of the /leave command and found, that the error message is the second one, at the very bottom of the file (Line 134+).
Sending a custom leave from the client works fine, just the internal one does not work anymore.

Please, can you tell me what i am doing wrong or if i found a bug.
Beni
Member
 
Posts: 65
Joined: Thu Sep 21, 2006 10:50 am
Top

Postby Beni » Mon Jul 23, 2007 9:56 pm

*push* i need this very hard :(
Beni
Member
 
Posts: 65
Joined: Thu Sep 21, 2006 10:50 am
Top

Postby phpfreechat » Tue Jul 24, 2007 3:59 pm

I don't see any syntax problem in your code...
Are you sure the channel you want to leave exists ?
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Postby Beni » Tue Jul 24, 2007 4:06 pm

yes, the channel is there.
The problem is located somewhere in the leave command code.
Beni
Member
 
Posts: 65
Joined: Thu Sep 21, 2006 10:50 am
Top

Postby phpfreechat » Tue Jul 24, 2007 4:14 pm

Could you investigate in leave.class.php file using the trace() method to print variables to the debuging console (you have to enable "debug" in chat parameters) :

$this->trace($xml_reponse, "your data to print on the console");
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Postby Beni » Tue Jul 24, 2007 4:25 pm

Furter tests showed, that the old parameter interface works:
$cmdp = $p;
$cmdp["params"] = array();
$cmdp["param"] = $open_channels[0];
$cmd =& pfcCommand::Factory('leave');
$cmd->run($xml_reponse, $cmdp);
Beni
Member
 
Posts: 65
Joined: Thu Sep 21, 2006 10:50 am
Top

Postby phpfreechat » Tue Jul 24, 2007 10:16 pm

Ok thank you for your investigation.
I will have a look on this strange behavior when I got some time.
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top


Post a reply
7 posts • Page 1 of 1

Return to General Support (v1.x)

Who is online

Users browsing this forum: No registered users and 6 guests

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