[Phpfreechat-svn] SF.net SVN: phpfreechat: [783] trunk/src/proxies/noflood.class.php
Status: Beta
Brought to you by:
kerphi
From: <ke...@us...> - 2006-09-22 09:31:17
|
Revision: 783 http://svn.sourceforge.net/phpfreechat/?rev=783&view=rev Author: kerphi Date: 2006-09-22 02:31:12 -0700 (Fri, 22 Sep 2006) Log Message: ----------- code cleaning Modified Paths: -------------- trunk/src/proxies/noflood.class.php Modified: trunk/src/proxies/noflood.class.php =================================================================== --- trunk/src/proxies/noflood.class.php 2006-09-22 09:28:51 UTC (rev 782) +++ trunk/src/proxies/noflood.class.php 2006-09-22 09:31:12 UTC (rev 783) @@ -53,17 +53,18 @@ $flood_nbchar = $container->getUserMeta($nickid, 'flood_nbchar'); $floodtime = time(); - // update the number of posted message indicator if ($floodtime - $lastfloodtime <= $c->proxies_cfg[$this->proxyname]["delay"]) + { + // update the number of posted message indicator $flood_nbmsg++; + // update the number of posted characteres indicator + $flood_nbchar += utf8_strlen($param); + } else + { $flood_nbmsg = 0; - - // update the number of posted characteres indicator - if ($floodtime - $lastfloodtime <= $c->proxies_cfg[$this->proxyname]["delay"]) - $flood_nbchar += utf8_strlen($param); - else $flood_nbchar = 0; + } if (!$isadmin && ($flood_nbmsg>$c->proxies_cfg[$this->proxyname]["msglimit"] || This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |