diff options
-rwxr-xr-x | bin/ircsink | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/ircsink b/bin/ircsink index 55e0d3d..23e3dab 100755 --- a/bin/ircsink +++ b/bin/ircsink @@ -212,15 +212,17 @@ main() {( case $sasl_mech in plain) echo2 "CAP REQ :sasl" - sed -nru '/^:[^ ]* CAP [0-9A-Za-z]+ ACK sasl/q' + sed -nru '/^:[^ ]* CAP [0-9A-Za-z]+ ACK :sasl/q' echo2 "AUTHENTICATE PLAIN" - sed -nru '/^:[^ ]* AUTHENTICATE +/q' + sed -nru '/AUTHENTICATE +/q' echo sasl user: $sasl_user >&2 message=$(printf '\0%s\0%s' "$sasl_user" "$sasl_pass" | base64 -w0) echo "AUTHENTICATE $message" echo "AUTHENTICATE ***REDACTED***" >&2 + + sed -nru '/^(.*?):SASL authentication successful/q' ;; esac |