Revision: 623
Author: kerphi
Date: 2006-06-24 13:07:30 -0700 (Sat, 24 Jun 2006)
ViewCVS: http://svn.sourceforge.net/phpfreechat/?rev=623&view=rev
Log Message:
-----------
Now the flooder is kicked
Modified Paths:
--------------
trunk/src/proxys/noflood.class.php
Modified: trunk/src/proxys/noflood.class.php
===================================================================
--- trunk/src/proxys/noflood.class.php 2006-06-24 20:05:49 UTC (rev 622)
+++ trunk/src/proxys/noflood.class.php 2006-06-24 20:07:30 UTC (rev 623)
@@ -35,7 +35,7 @@
$c =& $this->c;
$u =& $this->u;
- $cmdtocheck = array("send", "nick", "me", "notice");
+ $cmdtocheck = array("send", "nick", "me");
if ( in_array($this->name, $cmdtocheck) )
{
$container =& $c->getContainerInstance();
@@ -56,6 +56,14 @@
$msg = _pfc("Please don't post so many message, flood is not tolerated");
$xml_reponse->addScript("alert('".addslashes($msg)."');");
// @todo kick the user
+
+
+ $msg = $recipientid." ";
+ $msg .=_pfc("kicked from %s by %s", $u->channels[$recipientid]["name"], "noflood");
+ $cmd =& pfcCommand::Factory("leave");
+ $cmd->run($xml_reponse, $clientid, $msg, $sender, $recipient, $recipientid);
+
+
return;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|