summaryrefslogtreecommitdiffstats
path: root/git/gitolite-hooks/irc-announce
diff options
context:
space:
mode:
authortv <tv@nomic.retiolum>2014-03-14 14:26:55 +0100
committertv <tv@nomic.retiolum>2014-03-14 14:26:55 +0100
commit915262791f611b30070d5cf6de1ba40989a4ebd6 (patch)
tree7db29cccbf452c010635e67539685ed1534ffb4a /git/gitolite-hooks/irc-announce
parent617c75df73f02cc951e63f87926a42d11cb3079a (diff)
irc-announce: wait for PART message before QUIT
Diffstat (limited to 'git/gitolite-hooks/irc-announce')
-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