Skip to content
Snippets Groups Projects
Commit 4b66f033 authored by deuce's avatar deuce
Browse files

Base the throttling on careful(ish) study of the ircd...

The first four lines can be sent as fast as you like... after that, there
must be at least two seconds (ala time()!) before you send the next or a
two-second delay will be inserted for you.

Try to hack this, but the inter-line delay appears to need to be three
seconds because of the granularity of time().

Maybe the ircd should switch to a better time source...
parent 0c75d845
Branches
Tags
No related merge requests found
......@@ -96,11 +96,11 @@ var delay=0;
if(msg)
send(msg, delay);
else while((msg=readln())!=undefined) { /* read from stdin */
var send_count = 0;
if (send(msg, delay)) {
if(delay < 2000)
delay*=2;
if (delay == 0)
delay = 1000;
send_count++;
if (send_count > 4)
delay = 2050;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment