Skip to content

Commit

Permalink
irc-announce: wait for PART message before QUIT
Browse files Browse the repository at this point in the history
  • Loading branch information
4z3 committed Mar 14, 2014
1 parent 617c75d commit 9152627
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions git/gitolite-hooks/irc-announce
Expand Up @@ -106,13 +106,9 @@ trap "

echo2 "PART $IRC_CHANNEL"

# TESTME does this sleep help to send all messages?
sleep 5
# wait for PART confirmation
sed -n '/:'"$IRC_NICK"'![^ ]* PART /q'

echo2 'QUIT :Gone to have lunch'

printf 
sleep 1
exit
} < ircin \
| nc "$IRC_SERVER" "$IRC_PORT" | tee -a ircin

0 comments on commit 9152627

Please sign in to comment.