From 9df8bad704d63026d88ea55ca3e63a540a52653a Mon Sep 17 00:00:00 2001 From: Yuuki Chan Date: Sun, 18 Feb 2024 23:04:03 +0900 Subject: [PATCH] Reformatted sasl.py --- src/sasl.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/sasl.py b/src/sasl.py index edc8df4..c123a9c 100644 --- a/src/sasl.py +++ b/src/sasl.py @@ -4,6 +4,7 @@ import base64 NULL_BYTE = '\x00' ENCODING = 'UTF-8' + def handle_sasl(config, ircsend): """ Handles SASL authentication by sending an AUTHENTICATE command. @@ -14,6 +15,7 @@ def handle_sasl(config, ircsend): """ ircsend('AUTHENTICATE PLAIN') + def handle_authenticate(args, config, ircsend): """ Handles the AUTHENTICATE command response. @@ -31,6 +33,7 @@ def handle_authenticate(args, config, ircsend): else: raise KeyError("SASLNICK and/or SASLPASS not found in config") + def handle_903(ircsend): """ Handles the 903 command by sending a CAP END command. @@ -38,4 +41,4 @@ def handle_903(ircsend): Parameters: ircsend (function): Function to send IRC commands """ - ircsend('CAP END') \ No newline at end of file + ircsend('CAP END')