diff --git a/modules/sasl/__init__.py b/modules/sasl/__init__.py index 70e6367a..415b1abe 100644 --- a/modules/sasl/__init__.py +++ b/modules/sasl/__init__.py @@ -89,10 +89,11 @@ class Module(ModuleManager.BaseModule): else: raise ValueError("unknown sasl mechanism '%s'" % mechanism) - if not auth_text == "+": - auth_text = base64.b64encode(auth_text) - auth_text = auth_text.decode("utf8") - event["server"].send_authenticate(auth_text) + if not auth_text == None: + if not auth_text == "+": + auth_text = base64.b64encode(auth_text) + auth_text = auth_text.decode("utf8") + event["server"].send_authenticate(auth_text) def _end_sasl(self, server): server.capability_done("sasl")