Silence ii(1) while connecting

This commit is contained in:
Pierre Pronchery 2020-03-12 02:17:41 +01:00
parent 82ca968263
commit b3edf60def

View File

@ -18,6 +18,7 @@
#environment #environment
#variables #variables
DEVNULL="/dev/null"
JOIN="/j" JOIN="/j"
NOTICE="/NOTICE" NOTICE="/NOTICE"
PREFIX="/var/tmp/ii" PREFIX="/var/tmp/ii"
@ -55,7 +56,7 @@ _irc()
#connect to the server #connect to the server
if [ ! -w "$serverin" ]; then if [ ! -w "$serverin" ]; then
_info "$server: Connecting to server" _info "$server: Connecting to server"
$II -s "$server" -p "$port" -n "$nickname" & $II -s "$server" -p "$port" -n "$nickname" > "$DEVNULL" &
pid=$! pid=$!
fi fi
#wait until the server is connected to #wait until the server is connected to