From edc7410772b23f72bd88d42a389cac8201300dfa Mon Sep 17 00:00:00 2001 From: tv Date: Wed, 29 Dec 2021 00:09:08 +0100 Subject: ircsink: also wait for end of MOTD --- bin/ircsink | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'bin') 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 -- cgit v1.2.3