Revert to using /QUIT

This commit is contained in:
Pierre Pronchery 2020-02-03 05:20:45 +01:00
parent df421ecaea
commit f226962000

View File

@ -23,7 +23,7 @@ NOTICE="/NOTICE"
PREFIX="/var/tmp/ii"
PRIVMSG="/j"
PROGNAME="deforaos-irc.sh"
QUIT="/q"
QUIT="/QUIT"
#executables
CUT="cut"
FORTUNE="fortune -s"
@ -121,7 +121,7 @@ _irc()
#quit the server
_info "$server: Disconnecting from server"
fortune=$($FORTUNE | $HEAD -n 1 | $CUT -c 1-50)
echo "$QUIT $fortune" > "$serverin"
echo "$QUIT :$fortune" > "$serverin"
#wait until the server is disconnected
#FIXME ii does not automatically clean up when quitting
loop=0