Add timeout to irc-say
- Prevents from indefinetely blocking all scripts that use it.
This commit is contained in:
parent
9070b29b7b
commit
3d9ad47064
1 changed files with 1 additions and 1 deletions
2
irc-say
2
irc-say
|
@ -8,4 +8,4 @@ if [ $# -eq 0 ]; then
|
|||
exit
|
||||
fi
|
||||
|
||||
echo "$*" | nc "$HOST" "$PORT"
|
||||
echo "$*" | nc -w3 "$HOST" "$PORT"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue