From 12f8412e1edcac58198d9af9fd02fcb8c29b39c9 Mon Sep 17 00:00:00 2001 From: xkey Date: Tue, 18 Jul 2023 10:34:11 +0200 Subject: ircsink: allow SASL authentication at hackint --- bin/ircsink | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'bin/ircsink') 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 -- cgit v1.2.3