diff options
author | tv <tv@krebsco.de> | 2021-12-29 00:09:08 +0100 |
---|---|---|
committer | tv <tv@krebsco.de> | 2021-12-29 00:09:08 +0100 |
commit | edc7410772b23f72bd88d42a389cac8201300dfa (patch) | |
tree | b3fe6587a6736990b12e116ea5de172154250ba5 /bin | |
parent | 0dce9ca255bbd46216a756c45cd02158abe42e8b (diff) |
ircsink: also wait for end of MOTD
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/ircsink | 10 |
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 |