Reformatted sasl.py
This commit is contained in:
parent
e638e1e30d
commit
9df8bad704
1 changed files with 4 additions and 1 deletions
|
@ -4,6 +4,7 @@ import base64
|
||||||
NULL_BYTE = '\x00'
|
NULL_BYTE = '\x00'
|
||||||
ENCODING = 'UTF-8'
|
ENCODING = 'UTF-8'
|
||||||
|
|
||||||
|
|
||||||
def handle_sasl(config, ircsend):
|
def handle_sasl(config, ircsend):
|
||||||
"""
|
"""
|
||||||
Handles SASL authentication by sending an AUTHENTICATE command.
|
Handles SASL authentication by sending an AUTHENTICATE command.
|
||||||
|
@ -14,6 +15,7 @@ def handle_sasl(config, ircsend):
|
||||||
"""
|
"""
|
||||||
ircsend('AUTHENTICATE PLAIN')
|
ircsend('AUTHENTICATE PLAIN')
|
||||||
|
|
||||||
|
|
||||||
def handle_authenticate(args, config, ircsend):
|
def handle_authenticate(args, config, ircsend):
|
||||||
"""
|
"""
|
||||||
Handles the AUTHENTICATE command response.
|
Handles the AUTHENTICATE command response.
|
||||||
|
@ -31,6 +33,7 @@ def handle_authenticate(args, config, ircsend):
|
||||||
else:
|
else:
|
||||||
raise KeyError("SASLNICK and/or SASLPASS not found in config")
|
raise KeyError("SASLNICK and/or SASLPASS not found in config")
|
||||||
|
|
||||||
|
|
||||||
def handle_903(ircsend):
|
def handle_903(ircsend):
|
||||||
"""
|
"""
|
||||||
Handles the 903 command by sending a CAP END command.
|
Handles the 903 command by sending a CAP END command.
|
||||||
|
@ -38,4 +41,4 @@ def handle_903(ircsend):
|
||||||
Parameters:
|
Parameters:
|
||||||
ircsend (function): Function to send IRC commands
|
ircsend (function): Function to send IRC commands
|
||||||
"""
|
"""
|
||||||
ircsend('CAP END')
|
ircsend('CAP END')
|
||||||
|
|
Loading…
Add table
Reference in a new issue