Author Topic: How can I avoid Flood Protection  (Read 4304 times)

MklKvh

  • Newbie
  • *
  • Posts: 25
How can I avoid Flood Protection
« on: June 08, 2004, 07:43:40 AM »
When I paste a few lines of

text,
most channels kick me for flooding.

is there a build-in flood protecting? So the lines will be send slowly

one for one.

Snerf

  • Administrator
  • Hero Member
  • *****
  • Posts: 1968
    • IceChat IRC Client
How can I avoid Flood Protection
« Reply #1 on: June 08, 2004, 07:50:47 AM »
Sorry, there is no option for this.

A script could be

written to do such a thing though, using timers.
The IceChat God

MklKvh

  • Newbie
  • *
  • Posts: 25
How can I avoid Flood Protection
« Reply #2 on: June 08, 2004, 11:47:22 AM »
I tried this with the OUTTEXT-Event.

The Script works

fine, but helps nothing.  :cry:
When I send more than 200 bytes the script waits 2 secondes,
but the server still

cancels me, caus he gets all together.
 
On my side I see the right values ( OutText = Timer & ":" &

OutgoingText ).

Please help.



-------------------------------------------------------------------------

Dim LastSendTime                    

   
Dim FloodBytes  
Dim FloodProtect
Function OUTTEXT(OutgoingText)  
If LastSendTime <> "" Then    
 

If Timer - LastSendTime < 1 Then  
    LastSendTime = Timer  
    FloodBytes = FloodBytes + Len(OutgoingText)  
 

   If FloodBytes >= 200 Then  
       FloodProtect = "YES"  
    End if    
  Else  
     LastSendTime = Timer

 
     FloodBytes = 0  
  End if  
else  
   LastSendTime = Timer  
   FloodBytes = 0  
End if
If

Timer - LastSendTime > 10 Then
   FloodProtect = "NO"
End if
If FloodProtect = "YES" Then
  Do While Timer -

LastSendTime < 2  
  LooP  
End IF  
OutText = Timer & ":" & OutgoingText  
End Function

Snerf

  • Administrator
  • Hero Member
  • *****
  • Posts: 1968
    • IceChat IRC Client
How can I avoid Flood Protection
« Reply #3 on: June 08, 2004, 12:40:59 PM »
No, this wouldnt work like this. Your using a "timer" in the

wrong way.
I meant making /timer commands, with the text. It will be a bit more difficult , but I am sure its possible.

You would need to get the current channel, and include that in the timer. So making a timer with an interval of 2 or 3

seconds, a unique id, and using the current channel, which GetIdentifier can intercept.

Perhaps someone else may have

a script like this.
The IceChat God

IRBMe

  • Newbie
  • *
  • Posts: 12
How can I avoid Flood Protection
« Reply #4 on: June 08, 2004, 04:00:26 PM »
Check in the Downloads Section, under IceChat Scripts, for

IceChat Anti-Flood Script.
Icechat - how cool can you GET?