From 3d9ad47064ca5333f183141bed5206adb885b56f Mon Sep 17 00:00:00 2001 From: polyfloyd Date: Tue, 20 Sep 2016 23:08:38 +0200 Subject: [PATCH] Add timeout to irc-say - Prevents from indefinetely blocking all scripts that use it. --- irc-say | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/irc-say b/irc-say index b1dfc81..5c3693b 100755 --- a/irc-say +++ b/irc-say @@ -8,4 +8,4 @@ if [ $# -eq 0 ]; then exit fi -echo "$*" | nc "$HOST" "$PORT" +echo "$*" | nc -w3 "$HOST" "$PORT"