summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/ircsink10
1 files changed, 5 insertions, 5 deletions
diff --git a/bin/ircsink b/bin/ircsink
index 3e91726..9b8289a 100755
--- a/bin/ircsink
+++ b/bin/ircsink
@@ -147,11 +147,11 @@ main() {(
echo2 "NICK $nick"
sed -nru '
- # wait for MODE message
- /^:[^ ]* MODE /q
-
- # alternatively wait for RPL_UMODEIS (221), used by ergochat
- /^:[^ ]* 221 /q
+ # wait for messages that indicate that the connection is ready
+ # RPL_UMODEIS (221)
+ # RPL_ENDOFMOTD (376)
+ # ERR_NOMOTD (422)
+ /^:[^ ]* (MODE|221|376|422) /q
# answer any PING messages while waiting
s/^PING (:.*)/PONG \1/p