Skip to content

Commit

Permalink
Merge pull request #2190 from sopel-irc/sasl-abort-backport
Browse files Browse the repository at this point in the history
coretasks: backport SASL abort from #2187

Can [skip ci] to save the build credits; PR+HEAD already tested.
  • Loading branch information
dgw authored Oct 11, 2021
2 parents 91652f0 + 2d07271 commit 83974bd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sopel/coretasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -1045,6 +1045,10 @@ def auth_proceed(bot, trigger):
"""
if trigger.args[0] != '+':
# How did we get here? I am not good with computer.
LOGGER.warning("Aborting SASL: unexpected server reply '%s'" % trigger)
# Send `authenticate-abort` command
# See https://ircv3.net/specs/extensions/sasl-3.1#the-authenticate-command
bot.write(('AUTHENTICATE', '*'))
return
# Is this right?
if bot.config.core.auth_method == 'sasl':
Expand Down

0 comments on commit 83974bd

Please sign in to comment.