• 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

noflood problem

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

Post a reply
9 posts • Page 1 of 1

Postby permutations » Tue Dec 16, 2008 5:45 pm

People are getting kicked out of the chat with a "noflood" message when they are not flooding. This seems to be new with v1.2. What is causing this, and is there a workaround?

Thanks.
permutations
Member
 
Posts: 88
Joined: Thu Apr 24, 2008 1:09 pm
Top

Postby Jamesiv4 » Wed Dec 17, 2008 1:46 am

I had the same problem, so I edited src/proxies/noflood.class.php and basically removed all the code. Be sure to save a copy of the original.

Code: Select all
<?php
/**
 * noflood.class.php
 *
 * Copyright © 2006 Stephane Gully <stephane.gully@gmail.com>
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the
 * Free Software Foundation, 51 Franklin St, Fifth Floor,
 * Boston, MA  02110-1301  USA
 */
require_once dirname(__FILE__)."/../pfci18n.class.php";
require_once dirname(__FILE__)."/../pfcuserconfig.class.php";
require_once dirname(__FILE__)."/../pfcproxycommand.class.php";
require_once dirname(__FILE__)."/../../lib/utf8/utf8_strlen.php";

?>
Jamesiv4
Member
 
Posts: 57
Joined: Sat Sep 06, 2008 11:18 am
Top

Postby permutations » Wed Dec 17, 2008 3:47 pm

Thanks. I discovered there's actually a parameter to disable this:

Code: Select all
$params['skip_proxies'] = array('noflood');
permutations
Member
 
Posts: 88
Joined: Thu Apr 24, 2008 1:09 pm
Top

Postby Jamesiv4 » Wed Dec 17, 2008 8:27 pm

yeah... I tried the parameter, but it didn't work for me. Thanks, though.
Jamesiv4
Member
 
Posts: 57
Joined: Sat Sep 06, 2008 11:18 am
Top

Postby phpfreechat » Thu Dec 18, 2008 2:13 pm

Maybe you need to rehash the chat ?
More info about the noflood proxy can be found here: http://www.phpfreechat.net/proxies#noflood
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Postby Jamesiv4 » Thu Dec 18, 2008 2:44 pm

Hi Stephane,

Yes... I rehashed and rehashed, but no joy with the skip_proxies parameter. It seemed to only happen with users that were using Internet Explorer - Firefox users did not experience the problem.

Thanks.
Jamesiv4
Member
 
Posts: 57
Joined: Sat Sep 06, 2008 11:18 am
Top

Postby permutations » Fri Dec 19, 2008 12:24 am

The parameter works fine for me. Perhaps there is an error in your syntax.
permutations
Member
 
Posts: 88
Joined: Thu Apr 24, 2008 1:09 pm
Top

Postby JediBR » Tue Feb 10, 2009 5:35 am

I have the same problem here.

Version 1.2

To reproduce the bug do the following:
1. Flood a 1 to 10 count to be kicked
2. Rejoin the channel
3. Say 1 message.
4. Say another message.
5. Last message won't be sent. You'll be kicked.

I've read the code. Seems ok for me... I even reidented it to be more comfortable to me... No success... Is there any fix? It's realy annoying, and I can't remove the protection because it will be an open chat for a large public, and we expect there will be disturbing flooders... :/

[ ############################# PROBLEM SOLVED ############################# ]

This patch also fixes the noflood bug (i'm not 100% sure, but it's certainly better)
http://www.phpfreechat.net/forum/viewto ... 944#p10944
Last edited by JediBR on Tue Feb 10, 2009 5:50 am, edited 1 time in total.
JediBR
New member
 
Posts: 1
Joined: Tue Feb 10, 2009 5:24 am
Top

Postby nibbles » Mon May 04, 2009 12:03 am

I have solved the problem replacing $flood_nbmsg++; with $flood_nbmsg+=0.5; in this section of src/proxies/noflood.class.php

if ($floodtime - $lastfloodtime <= $c->proxies_cfg[$this->proxyname]["delay"])
{
// update the number of posted message indicator
$flood_nbmsg+=0.5;
// update the number of posted characteres indicator
$flood_nbchar += utf8_strlen($param);
}
nibbles
New member
 
Posts: 2
Joined: Sun May 03, 2009 10:28 pm
Top


Post a reply
9 posts • Page 1 of 1

Return to General Support (v1.x)

Who is online

Users browsing this forum: No registered users and 30 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