Revert to using /QUIT
This commit is contained in:
parent
df421ecaea
commit
f226962000
|
@ -23,7 +23,7 @@ NOTICE="/NOTICE"
|
||||||
PREFIX="/var/tmp/ii"
|
PREFIX="/var/tmp/ii"
|
||||||
PRIVMSG="/j"
|
PRIVMSG="/j"
|
||||||
PROGNAME="deforaos-irc.sh"
|
PROGNAME="deforaos-irc.sh"
|
||||||
QUIT="/q"
|
QUIT="/QUIT"
|
||||||
#executables
|
#executables
|
||||||
CUT="cut"
|
CUT="cut"
|
||||||
FORTUNE="fortune -s"
|
FORTUNE="fortune -s"
|
||||||
|
@ -121,7 +121,7 @@ _irc()
|
||||||
#quit the server
|
#quit the server
|
||||||
_info "$server: Disconnecting from server"
|
_info "$server: Disconnecting from server"
|
||||||
fortune=$($FORTUNE | $HEAD -n 1 | $CUT -c 1-50)
|
fortune=$($FORTUNE | $HEAD -n 1 | $CUT -c 1-50)
|
||||||
echo "$QUIT $fortune" > "$serverin"
|
echo "$QUIT :$fortune" > "$serverin"
|
||||||
#wait until the server is disconnected
|
#wait until the server is disconnected
|
||||||
#FIXME ii does not automatically clean up when quitting
|
#FIXME ii does not automatically clean up when quitting
|
||||||
loop=0
|
loop=0
|
||||||
|
|
Loading…
Reference in New Issue
Block a user