Add timeout to irc-say

- Prevents from indefinetely blocking all scripts that use it.
This commit is contained in:
polyfloyd 2016-09-20 23:08:38 +02:00
parent 9070b29b7b
commit 3d9ad47064

View file

@ -8,4 +8,4 @@ if [ $# -eq 0 ]; then
exit
fi
echo "$*" | nc "$HOST" "$PORT"
echo "$*" | nc -w3 "$HOST" "$PORT"