From 29fdc3ce539359fb69fd77610424283f98cd89a9 Mon Sep 17 00:00:00 2001 From: jesopo Date: Fri, 7 Feb 2020 00:14:05 +0000 Subject: [PATCH] regression: readd lost USERPASS SASL meta-mechanism --- src/core_modules/ircv3_sasl/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core_modules/ircv3_sasl/__init__.py b/src/core_modules/ircv3_sasl/__init__.py index 33dd4a63..69e60a79 100644 --- a/src/core_modules/ircv3_sasl/__init__.py +++ b/src/core_modules/ircv3_sasl/__init__.py @@ -13,12 +13,13 @@ USERPASS_MECHANISMS = [ "PLAIN" ] ALL_MECHANISMS = USERPASS_MECHANISMS+["EXTERNAL"] +SETTING_MECHANISMS = ALL_MECHANISMS+["USERPASS"] def _parse(value): mechanism, _, arguments = value.partition(" ") mechanism = mechanism.upper() - if mechanism in ALL_MECHANISMS: + if mechanism in SETTING_MECHANISMS: return {"mechanism": mechanism.upper(), "args": arguments} else: raise utils.settings.SettingParseException(