summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xgit/gitolite-hooks/irc-announce8
1 files changed, 2 insertions, 6 deletions
diff --git a/git/gitolite-hooks/irc-announce b/git/gitolite-hooks/irc-announce
index 9c98b330..a135ca67 100755
--- a/git/gitolite-hooks/irc-announce
+++ b/git/gitolite-hooks/irc-announce
@@ -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