commit b305f3134d659506a4cf617bf1d8d2d2742ae2fc
parent cfcedaf843546a7b11e6350e294f7223af19ee06
Author: Antoine Amarilli <a3nm@a3nm.net>
Date: Sat, 20 Jul 2013 00:43:26 +0200
Always use 1 for delay
Using 0 for tty results in a cryptic error when pasting many lines, along with
getting disconnected by the server. Using 1 makes little difference in practice
as the server will usually do its own throttling anyway.
Diffstat:
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/irctk.c b/irctk.c
@@ -72,8 +72,7 @@ static struct argp_option options[] = {
SSL},
{"interval", 'i', "secs", 0,
- "Wait delay between posted messages (default: 0 for tty stdin, 1 for"
- " file/pipe)",
+ "Wait delay between posted messages (default: 1)",
TIMING},
{"interval-end", 'I', "secs", 0,
"Wait delay between sending the last message and disconnecting"
@@ -246,7 +245,7 @@ void initialize_args()
args.verbosity = 0;
- args.interval = isatty(fileno(stdin))?0:1000000;
+ args.interval = 1000000;
args.interval_after = 2000000;
args.retry_after = 20;
args.retry_factor = 2;