Skip to content

Commit

Permalink
Revert "Update __init__.py"
Browse files Browse the repository at this point in the history
This reverts commit c5a23e3.
  • Loading branch information
wolfy1339 committed Jan 5, 2018
1 parent 48c181a commit d871d09
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions zirc/ext/sasl/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# SASL authentication for zirc

from sys import version_info
import base64
from . import scram
from ...errors import SASLError
Expand All @@ -17,10 +16,7 @@ def __init__(self, username, password, method="plain"):

def run(self, bot, args=None):
if args is None:
mechanisms = ["EXTERNAL", "PLAIN"]
if not (version_info[0] == 3 and version_info[1] == 2):
mechanisms.insert(0, "SCRAM-SHA256-PLUS")
mechanisms.insert(1, "SCRAM-SHA256")
mechanisms = ["SCRAM-SHA256-PLUS", "SCRAM-SHA256", "EXTERNAL", "PLAIN"]
else:
mechanisms = args
self.bot = bot
Expand Down

0 comments on commit d871d09

Please sign in to comment.