summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2020-02-11 13:36:01 +0100
committerErich Eckner <git@eckner.net>2020-02-11 13:36:01 +0100
commit1345249087bfd9514c3874d7f1399dcf3597ad5f (patch)
treeda923dc20f7165e55b8e5a2e3593bfc71b9443d5
parentb9a6c3c44d226ba4afaa941448b4a9b480a77505 (diff)
downloadbuilder-1345249087bfd9514c3874d7f1399dcf3597ad5f.tar.xz
bin/ii-connect: try to register more often
-rwxr-xr-xbin/ii-connect11
1 files changed, 5 insertions, 6 deletions
diff --git a/bin/ii-connect b/bin/ii-connect
index 8081cf0..652f94a 100755
--- a/bin/ii-connect
+++ b/bin/ii-connect
@@ -12,13 +12,12 @@ while ! grep -qF 'This nickname is registered. Please choose a different nicknam
sleep 1
done
-# register
-printf 'identify %s\n' "${irc_password}" | \
- sponge "${irc_dir}/nickserv/in"
-
# wait for registering to succeed
-while ! grep -qF 'You are now identified for' "${irc_dir}/nickserv/out"; do
- sleep 1
+while ! grep -q 'You are \(now identified for\|already logged in as\) ' "${irc_dir}/nickserv/out"; do
+ # register
+ printf 'identify %s\n' "${irc_password}" | \
+ sponge "${irc_dir}/nickserv/in"
+ sleep 5
done
# join channel