Skip to content

Commit

Permalink
Don't try to abort SASL authentication if it has already been aborted
Browse files Browse the repository at this point in the history
  • Loading branch information
luk3yx committed Apr 8, 2022
1 parent 0af9bba commit 951ec8d
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,15 @@ Notes:
- This changelog may contain typographical errors, it is still a
work-in-progress.

## 1.8.1 - 2022-04-08

### Changed

- Don't try and abort SASL authentication when receiving 904 numerics if it
has already been aborted. This prevents miniirc from constantly trying to
cancel authentication on InspIRCd 3 servers if the supplied credentials are
incorrect.

## 1.8.0 - 2022-01-11

### Added
Expand Down
11 changes: 6 additions & 5 deletions miniirc.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
import atexit, errno, threading, time, socket, ssl, sys, warnings

# The version string and tuple
ver = __version_info__ = (1,8,0)
version = 'miniirc IRC framework v1.8.0'
__version__ = '1.8.0'
ver = __version_info__ = (1,8,1)
version = 'miniirc IRC framework v1.8.1'
__version__ = '1.8.1'

# __all__ and _default_caps
__all__ = ['CmdHandler', 'Handler', 'IRC']
Expand Down Expand Up @@ -634,8 +634,9 @@ def _handler(irc, hostmask, args):

@Handler('904', '905')
def _handler(irc, hostmask, args):
irc._sasl = False
irc.quote('AUTHENTICATE *', force=True)
if irc._sasl:
irc._sasl = False
irc.quote('AUTHENTICATE *', force=True)

@Handler('902', '903', '904', '905')
def _handler(irc, hostmask, args):
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

setup(
name = 'miniirc',
version = '1.8.0',
version = '1.8.1',
py_modules = ['miniirc'],
author = 'luk3yx',
description = 'A lightweight IRC framework.',
Expand Down

0 comments on commit 951ec8d

Please sign in to comment.