summaryrefslogtreecommitdiffstats
path: root/bin/ircsink
diff options
context:
space:
mode:
authorxkey <xkey@krebsco.de>2023-07-18 10:34:11 +0200
committertv <tv@krebsco.de>2023-07-18 10:34:11 +0200
commit12f8412e1edcac58198d9af9fd02fcb8c29b39c9 (patch)
tree99f20c1fdec22b711cd7e387475b35cc7223cf5d /bin/ircsink
parentea91a989bd1cfb85065320ae760347b782d2b866 (diff)
ircsink: allow SASL authentication at hackint
Diffstat (limited to 'bin/ircsink')
-rwxr-xr-xbin/ircsink6
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